forked from extern/egroupware
added a local var $oProc as reference to the global one, to be compatible with old-style default_records.inc.php
This commit is contained in:
parent
4bbae0e6f7
commit
a29965b1ea
@ -334,6 +334,7 @@
|
|||||||
echo '<br>process->default_records(): Including default records for ' . $appname . "\n";
|
echo '<br>process->default_records(): Including default records for ' . $appname . "\n";
|
||||||
}
|
}
|
||||||
$GLOBALS['phpgw_setup']->oProc->m_odb->transaction_begin();
|
$GLOBALS['phpgw_setup']->oProc->m_odb->transaction_begin();
|
||||||
|
$oProc = &$GLOBALS['phpgw_setup']->oProc; // to be compatible with old apps
|
||||||
include ($appdir.'default_records.inc.php');
|
include ($appdir.'default_records.inc.php');
|
||||||
$GLOBALS['phpgw_setup']->oProc->m_odb->transaction_commit();
|
$GLOBALS['phpgw_setup']->oProc->m_odb->transaction_commit();
|
||||||
}
|
}
|
||||||
@ -795,4 +796,4 @@
|
|||||||
return array($arr,$pk,$fk,$ix,$uc);
|
return array($arr,$pk,$fk,$ix,$uc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user