cvs: phpweb /include shared-manual.inc

From: Date: Sun, 15 Sep 2002 10:45:25 +0000
Subject: cvs: phpweb /include shared-manual.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-12533@lists.php.net to get a copy of this message
goba Sun Sep 15 06:45:25 2002 EDT Modified files: /phpweb/include shared-manual.inc Log: Put all globals to the top, so we can easily find what's global in the function Index: phpweb/include/shared-manual.inc diff -u phpweb/include/shared-manual.inc:1.145 phpweb/include/shared-manual.inc:1.146 --- phpweb/include/shared-manual.inc:1.145 Fri Aug 16 14:32:44 2002 +++ phpweb/include/shared-manual.inc Sun Sep 15 06:45:25 2002 @@ -77,7 +77,7 @@ // Print out manual navigation bar function navigationBar($title,$id,$loc) { - global $NEXT, $PREV, $tstamp, $SERVER_NAME,$SERVER_PORT,$PHP_SELF; + global $NEXT, $PREV, $tstamp, $SERVER_NAME, $SERVER_PORT, $PHP_SELF, $LANGUAGES; echo '<table border="0" width="100%" bgcolor="#e0e0e0" cellpadding="0" cellspacing="4">'; @@ -102,7 +102,6 @@ echo '<td align="right" colspan="2"><small>Last updated: '.$tstamp; if ($loc != 'bottom') { - global $LANGUAGES; $links = array(); foreach ($LANGUAGES as $code => $name) { if (!preg_match("!/$code/!", $PHP_SELF) && file_exists("../$code/$id")) {

« previous php.mirrors (#12533) next »