forked from extern/egroupware
using schema_proc's new GetTableDefintion method if availible
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user