mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 11:51:43 +02:00
fix to work with an old header (to be able to upgrade)
This commit is contained in:
parent
54061abe26
commit
5f71a7e50a
@ -18,10 +18,15 @@
|
|||||||
|
|
||||||
error_reporting(error_reporting() & ~E_NOTICE);
|
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'))
|
if(file_exists('../header.inc.php'))
|
||||||
{
|
{
|
||||||
include('../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+
|
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);
|
$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;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user