using schema_proc's new GetTableDefintion method if availible

This commit is contained in:
Ralf Becker
2004-08-15 20:58:12 +00:00
parent adf79e6d7e
commit 03f1739205

View File

@ -171,6 +171,12 @@
else // import
{
$oProc = CreateObject('phpgwapi.schema_proc',$GLOBALS['phpgw_info']['server']['db_type']);
if (method_exists($oProc,'GetTableDefinition'))
{
$this->data[$this->table = $content['new_table_name']] = $oProc->GetTableDefinition($content['new_table_name']);
}
else // to support eGW 1.0
{
$oProc->m_odb = $GLOBALS['phpgw']->db;
$oProc->m_oTranslator->_GetColumns($oProc,$content['new_table_name'],$nul);
@ -189,6 +195,7 @@
);
}
}
}
elseif ($content['editor'])
{
ExecMethod('etemplate.editor.edit');