From 0ddb73fddbf386e19365cba29da5be8eddd1fd0e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 14 Oct 2005 09:36:37 +0000 Subject: [PATCH] modernize now removes: - global $phpgw; - global $phpgw_info; and replaces: - $phpgw -> $GLOBALS['egw'] - $phpgw_info -> $GLOBALS['egw_info'] --- doc/modernize.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/modernize.php b/doc/modernize.php index 12f8f8758f..bcb0636548 100755 --- a/doc/modernize.php +++ b/doc/modernize.php @@ -101,10 +101,14 @@ if (!$no_phpgw) $modernize += array( // 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\']', + '$phpgw_info[' => '$GLOBALS[\'egw_info\'][', '$GLOBALS[\'phpgw\']' => '$GLOBALS[\'egw\']', '$GLOBALS["phpgw"]' => '$GLOBALS[\'egw\']', + '$phpgw[' => '$GLOBALS[\'egw\'][', 'common->phpgw_header' => 'common->egw_header', 'common->phpgw_footer' => 'common->egw_footer', 'common->phpgw_exit' => 'common->egw_exit',