cvs: docweb /scripts rev.php /www revcheck.php

From: Date: Wed, 03 Nov 2004 16:41:08 +0000
Subject: cvs: docweb /scripts rev.php /www revcheck.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-418@lists.php.net to get a copy of this message
vincent Wed Nov 3 11:41:08 2004 EDT Modified files: /docweb/scripts rev.php /docweb/www revcheck.php Log: Prevent a '...not unique..' errorwhen calling rev.php without languages http://cvs.php.net/diff.php/docweb/scripts/rev.php?r1=1.11&r2=1.12&ty=u Index: docweb/scripts/rev.php diff -u docweb/scripts/rev.php:1.11 docweb/scripts/rev.php:1.12 --- docweb/scripts/rev.php:1.11 Tue Nov 2 06:56:49 2004 +++ docweb/scripts/rev.php Wed Nov 3 11:41:07 2004 @@ -84,6 +84,11 @@ // Test the languages : $langc = count($LANGS); for ($i = 0; $i < $langc; $i++) { + // make sure we don't parse the en tree + if ($LANGS[$i] == 'en') { + unset($LANGS[$i]); + } + if (!is_dir($DOCS . $LANGS[$i])) { echo "Error: the \"{$LANGS[$i]}\" lang doesn't exist for $TYPE, skipping..\n"; unset($LANGS[$i]); http://cvs.php.net/diff.php/docweb/www/revcheck.php?r1=1.12&r2=1.13&ty=u Index: docweb/www/revcheck.php diff -u docweb/www/revcheck.php:1.12 docweb/www/revcheck.php:1.13 --- docweb/www/revcheck.php:1.12 Sun Oct 31 11:05:28 2004 +++ docweb/www/revcheck.php Wed Nov 3 11:41:08 2004 @@ -1,5 +1,5 @@ <?php -/* $Id: revcheck.php,v 1.12 2004/10/31 16:05:28 vincent Exp $ */ +/* $Id: revcheck.php,v 1.13 2004/11/03 16:41:08 vincent Exp $ */ include '../include/init.inc.php'; include '../include/lib_revcheck.inc.php'; @@ -384,7 +384,7 @@ <th>$LANG</th> <th>diff</th> </tr> - <tr class="blue"><th colspan="12">{$_GET['dir']}</th></tr> + <tr class="blue"><th colspan="12">{$outdated[0]['name']}</th></tr> END_OF_MULTILINE; $last_dir = false;

« previous php.doc.web (#418) next »