svn: /phpdoc/doc-base/trunk/scripts/ revcheck.php

From: Date: Wed, 27 Oct 2010 10:30:18 +0000
Subject: svn: /phpdoc/doc-base/trunk/scripts/ revcheck.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7354@lists.php.net to get a copy of this message
shein Wed, 27 Oct 2010 10:30:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=304948 Log: Fixed root directory output in "Files" section. Changed paths: U phpdoc/doc-base/trunk/scripts/revcheck.php Modified: phpdoc/doc-base/trunk/scripts/revcheck.php =================================================================== --- phpdoc/doc-base/trunk/scripts/revcheck.php 2010-10-27 10:29:29 UTC (rev 304947) +++ phpdoc/doc-base/trunk/scripts/revcheck.php 2010-10-27 10:30:18 UTC (rev 304948) @@ -897,8 +897,8 @@ // Store the new actual directory $prev_dir = $new_dir; } - // Drop out the unneeded parts from the dirname... - $display_dir = str_replace($DOCDIR."en/", "", dirname($file["full_name"])); + // Drop out the unneeded parts from the dirname, special case for root dir... + $display_dir = str_replace(array($DOCDIR."en/", $DOCDIR."en"), array("", '/'), dirname($file["full_name"])); $prev_diplay_dir = "<tr class=blue><th colspan=12>$display_dir"; // Save the line for the current file (get file name shorter)

« previous php.doc.cvs (#7354) next »