cvs: phpweb / docs.php

From: Date: Fri, 11 Apr 2008 12:06:18 +0000
Subject: cvs: phpweb / docs.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1520@lists.php.net to get a copy of this message
bjori Fri Apr 11 12:06:18 2008 UTC Modified files: /phpweb docs.php Log: Check if the language really exists http://cvs.php.net/viewvc.cgi/phpweb/docs.php?r1=1.141&r2=1.142&diff_format=u Index: phpweb/docs.php diff -u phpweb/docs.php:1.141 phpweb/docs.php:1.142 --- phpweb/docs.php:1.141 Thu Apr 10 18:41:13 2008 +++ phpweb/docs.php Fri Apr 11 12:06:18 2008 @@ -1,5 +1,5 @@ <?php -// $Id: docs.php,v 1.141 2008/04/10 18:41:13 philip Exp $ +// $Id: docs.php,v 1.142 2008/04/11 12:06:18 bjori Exp $ $_SERVER['BASE_PAGE'] = 'docs.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; @@ -45,10 +45,9 @@ $man_languages = array(); // Remove inactive online languages from the list to show foreach ($ACTIVE_ONLINE_LANGUAGES as $code => $langname) { -// Avoid this stat call here for the moment -// if (file_exists("manual/$code/index.php")) { + if (file_exists("manual/$code/index.php")) { $man_languages[] = $code; -// } + } } $lastlang = count($man_languages) - 1;

« previous php.webmaster (#1520) next »