load schema_proc from api for .16

This commit is contained in:
Ralf Becker 2003-04-27 08:27:50 +00:00
parent 363936013e
commit 6a1b96229c

View File

@ -185,7 +185,7 @@
} }
else // import else // import
{ {
$schema_app = $this->editor->stable ? 'etemplate' : 'phpgwapi'; // this is for 0.9.14 $schema_app = !file_exists(PHPGW_API_INC.'/class.schema_proc.inc.php') ? 'etemplate' : 'phpgwapi'; // this is for 0.9.14
$oProc = CreateObject($schema_app.'.schema_proc',$GLOBALS['phpgw_info']['server']['db_type']); $oProc = CreateObject($schema_app.'.schema_proc',$GLOBALS['phpgw_info']['server']['db_type']);
$oProc->m_odb = $GLOBALS['phpgw']->db; $oProc->m_odb = $GLOBALS['phpgw']->db;
$oProc->m_oTranslator->_GetColumns($oProc,$content['new_table_name'],$nul); $oProc->m_oTranslator->_GetColumns($oProc,$content['new_table_name'],$nul);