mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fix to work with an old header (to be able to upgrade)
This commit is contained in:
parent
54061abe26
commit
5f71a7e50a
@ -17,11 +17,16 @@
|
||||
/* $Id$ */
|
||||
|
||||
error_reporting(error_reporting() & ~E_NOTICE);
|
||||
|
||||
|
||||
// for an old header, we need to setup the reference before including it
|
||||
if (!is_array($GLOBALS['phpgw_info'])) $GLOBALS['phpgw_info'] =& $GLOBALS['egw_info'];
|
||||
|
||||
if(file_exists('../header.inc.php'))
|
||||
{
|
||||
include('../header.inc.php');
|
||||
}
|
||||
// for an old header we need to setup a reference for the domains
|
||||
if (!is_array($GLOBALS['egw_domain'])) $GLOBALS['egw_domain'] =& $GLOBALS['phpgw_domain'];
|
||||
|
||||
if (!function_exists('version_compare'))//version_compare() is only available in PHP4.1+
|
||||
{
|
||||
@ -57,7 +62,7 @@
|
||||
{
|
||||
$vars = array($m1,$m2,$m3,$m4,$m5,$m6,$m7,$m8,$m9,$m10);
|
||||
}
|
||||
$value = $GLOBALS['phpgw_setup']->translation->translate("$key", $vars );
|
||||
$value = $GLOBALS['egw_setup']->translation->translate("$key", $vars );
|
||||
return $value;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user