mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
try using xet files if db is not availible (eg. early setup stage)
This commit is contained in:
parent
e14cc06c49
commit
5f35a0cf8b
@ -87,8 +87,15 @@
|
|||||||
*/
|
*/
|
||||||
function soetemplate($name='',$template='',$lang='',$group=0,$version='',$rows=1,$cols=1)
|
function soetemplate($name='',$template='',$lang='',$group=0,$version='',$rows=1,$cols=1)
|
||||||
{
|
{
|
||||||
$this->db = clone($GLOBALS['egw']->db);
|
if (is_object($GLOBALS['egw']->db))
|
||||||
$this->db->set_app('etemplate');
|
{
|
||||||
|
$this->db = clone($GLOBALS['egw']->db);
|
||||||
|
$this->db->set_app('etemplate');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$GLOBALS['egw_info']['server']['eTemplate-source'] = 'files';
|
||||||
|
}
|
||||||
$this->db_cols = $this->db_key_cols + $this->db_data_cols;
|
$this->db_cols = $this->db_key_cols + $this->db_data_cols;
|
||||||
|
|
||||||
if (empty($name))
|
if (empty($name))
|
||||||
|
Loading…
Reference in New Issue
Block a user