modernize now removes:

- global $phpgw;
- global $phpgw_info;
and replaces:
- $phpgw -> $GLOBALS['egw']
- $phpgw_info -> $GLOBALS['egw_info']
This commit is contained in:
Ralf Becker 2005-10-14 09:36:37 +00:00
parent d240021947
commit 0ddb73fddb

View File

@ -101,10 +101,14 @@ if (!$no_phpgw)
$modernize += array( $modernize += array(
// phpGW --> eGW // phpGW --> eGW
// done now separate as it is case sensitve 'PHPGW_' => 'EGW_', // done now separate as it is case sensitve 'PHPGW_' => 'EGW_',
'global $phpgw_info;' => '',
'global $phpgw;' => '',
'$GLOBALS[\'phpgw_info\']' => '$GLOBALS[\'egw_info\']', '$GLOBALS[\'phpgw_info\']' => '$GLOBALS[\'egw_info\']',
'$GLOBALS["phpgw_info"]' => '$GLOBALS[\'egw_info\']', '$GLOBALS["phpgw_info"]' => '$GLOBALS[\'egw_info\']',
'$phpgw_info[' => '$GLOBALS[\'egw_info\'][',
'$GLOBALS[\'phpgw\']' => '$GLOBALS[\'egw\']', '$GLOBALS[\'phpgw\']' => '$GLOBALS[\'egw\']',
'$GLOBALS["phpgw"]' => '$GLOBALS[\'egw\']', '$GLOBALS["phpgw"]' => '$GLOBALS[\'egw\']',
'$phpgw[' => '$GLOBALS[\'egw\'][',
'common->phpgw_header' => 'common->egw_header', 'common->phpgw_header' => 'common->egw_header',
'common->phpgw_footer' => 'common->egw_footer', 'common->phpgw_footer' => 'common->egw_footer',
'common->phpgw_exit' => 'common->egw_exit', 'common->phpgw_exit' => 'common->egw_exit',