cvs: phpweb /include shared-manual.inc

From: Date: Mon, 02 Jun 2003 08:40:18 +0000
Subject: cvs: phpweb /include shared-manual.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-18376@lists.php.net to get a copy of this message
derick Mon Jun 2 04:40:18 2003 EDT Modified files: /phpweb/include shared-manual.inc Log: - Remove inactive languages from this list too Index: phpweb/include/shared-manual.inc diff -u phpweb/include/shared-manual.inc:1.190 phpweb/include/shared-manual.inc:1.191 --- phpweb/include/shared-manual.inc:1.190 Tue May 27 12:48:36 2003 +++ phpweb/include/shared-manual.inc Mon Jun 2 04:40:18 2003 @@ -97,7 +97,9 @@ preg_match("!^/manual/(.+)/!", $REQUEST_URI, $langcode); $links[] = array("$langcode[1]/print/$id", "printer friendly"); $links[] = array("$langcode[1]/printwn/$id", "printer friendly [+notes]"); - foreach ($LANGUAGES as $code => $name) { + // Disable all 'inactive' languages + $online_languages = array_diff($LANGUAGES, $INACTIVE_ONLINE_LANGUAGES); + foreach ($online_languages as $code => $name) { if (!preg_match("!/$code/!", $PHP_SELF) // && file_exists($_SERVER['DOCUMENT_ROOT'] . "/$code/$id") ) {

« previous php.mirrors (#18376) next »