cvs: phd(PHD_0_4) / config.php package.xml /themes/php phpdotnet.php

From: Date: Sat, 27 Dec 2008 22:18:55 +0000
Subject: cvs: phd(PHD_0_4) / config.php package.xml /themes/php phpdotnet.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2846@lists.php.net to get a copy of this message
bjori Sat Dec 27 22:18:55 2008 UTC Modified files: (Branch: PHD_0_4) /phd config.php package.xml /phd/themes/php phpdotnet.php Log: MFH: Fixed bug#46941 (FR: Find broken links) - Moved recent bugfix to the correct section http://cvs.php.net/viewvc.cgi/phd/config.php?r1=1.45.2.14.2.8&r2=1.45.2.14.2.9&diff_format=u Index: phd/config.php diff -u phd/config.php:1.45.2.14.2.8 phd/config.php:1.45.2.14.2.9 --- phd/config.php:1.45.2.14.2.8 Fri Dec 5 22:50:07 2008 +++ phd/config.php Sat Dec 27 22:18:55 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: config.php,v 1.45.2.14.2.8 2008/12/05 22:50:07 bjori Exp $ */ +/* $Id: config.php,v 1.45.2.14.2.9 2008/12/27 22:18:55 bjori Exp $ */ /* {{{ PhD error & message handler */ @@ -18,8 +18,9 @@ define('VERBOSE_TOC_WRITING', VERBOSE_PARTIAL_CHILD_READING << 1); define('VERBOSE_CHUNK_WRITING', VERBOSE_TOC_WRITING << 1); define('VERBOSE_NOVERSION', VERBOSE_CHUNK_WRITING << 1); +define('VERBOSE_BROKEN_LINKS', VERBOSE_NOVERSION << 1); -define('VERBOSE_ALL', (VERBOSE_NOVERSION << 1)-1); +define('VERBOSE_ALL', (VERBOSE_BROKEN_LINKS << 1)-1); /* {{{ Print info messages: v("printf-format-text" [, $arg1, ...], $verbose-level) */ @@ -58,6 +59,7 @@ VERBOSE_TOC_WRITING => 'VERBOSE_TOC_WRITING', VERBOSE_CHUNK_WRITING => 'VERBOSE_CHUNK_WRITING', VERBOSE_NOVERSION => 'VERBOSE_NOVERSION', + VERBOSE_BROKEN_LINKS => 'VERBOSE_BROKEN_LINKS', ); static $recursive = false; @@ -84,6 +86,7 @@ case VERBOSE_TOC_WRITING: case VERBOSE_CHUNK_WRITING: case VERBOSE_NOVERSION: + case VERBOSE_BROKEN_LINKS: $cl1 = $OPTIONS['color_output'] ? "\033[01;{$OPTIONS['color_output']}m" : ''; $cr = $OPTIONS['color_output'] ? "\033[m" : ''; fprintf($OPTIONS["phd_info_output"], "{$cl1}[%s - %s]{$cr} %s\n", $time, $err[$errno], $msg); http://cvs.php.net/viewvc.cgi/phd/package.xml?r1=1.74.2.19.2.25&r2=1.74.2.19.2.26&diff_format=u Index: phd/package.xml diff -u phd/package.xml:1.74.2.19.2.25 phd/package.xml:1.74.2.19.2.26 --- phd/package.xml:1.74.2.19.2.25 Fri Dec 26 16:17:38 2008 +++ phd/package.xml Sat Dec 27 22:18:55 2008 @@ -52,6 +52,9 @@ </stability> <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD Style</license> <notes> + - Fixed bug#46941 (FR: Find broken links). (Hannes) + - Fixed bug#46931 (wrong order of the META tag in the HEAD element). (Chen Gang) + - Fixed bug#46714 (change deprecated ereg_replace(Since PHP 5.3.0) to preg_replace). (Chen Gang) </notes> <contents> @@ -419,8 +422,6 @@ - Fixed a bug where it was only possible to pass one parameter to phd.bat. (Kalle) - Fixed a bug where it wasn't possible to have paths with spaces in when using phd.bat. (Kalle) - Fixed xhtml validation issue for itemizedlist. (Christian) - - Fix bug #46931: wrong order of the META tag in the HEAD element (Chen Gang) - - Fix bug #46714: change deprecated ereg_replace(Since PHP 5.3.0) to preg_replace (Chen Gang) </notes> </release> @@ -478,8 +479,6 @@ - Automatically use the phpdoc configure.php generated version information file if it exists. (Hannes) - Removed default border for formal tables. (Philip) - - Fix bug #46931: wrong order of the META tag in the HEAD element (Chen Gang) - - Fix bug #46714: change deprecated ereg_replace(Since PHP 5.3.0) to preg_replace (Chen Gang) </notes> </release> http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.53.2.4.2.3&r2=1.53.2.4.2.4&diff_format=u Index: phd/themes/php/phpdotnet.php diff -u phd/themes/php/phpdotnet.php:1.53.2.4.2.3 phd/themes/php/phpdotnet.php:1.53.2.4.2.4 --- phd/themes/php/phpdotnet.php:1.53.2.4.2.3 Sat Nov 15 17:49:36 2008 +++ phd/themes/php/phpdotnet.php Sat Dec 27 22:18:55 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: phpdotnet.php,v 1.53.2.4.2.3 2008/11/15 17:49:36 bjori Exp $ */ +/* $Id: phpdotnet.php,v 1.53.2.4.2.4 2008/12/27 22:18:55 bjori Exp $ */ abstract class phpdotnet extends PhDTheme { protected $elementmap = array( @@ -524,12 +524,17 @@ } $ref = strtolower(str_replace(array("_", "::", "->"), array("-", "-", "-"), $value)); - if (($filename = $this->getRefnameLink($ref)) !== null && $this->CURRENT_ID !== $filename) { - if ($this->chunked) { - return '<a href="'.$filename. '.' .$this->ext. '" class="function"'.$rel.'>' .$display_value.($tag == "function" ? "()" : ""). '</a>'; + if (($filename = $this->getRefnameLink($ref)) !== null) { + if ($this->CURRENT_ID !== $filename) { + if ($this->chunked) { + return '<a href="'.$filename. '.' .$this->ext. '" class="function"'.$rel.'>' .$display_value.($tag == "function" ? "()" : ""). '</a>'; + } + return '<a href="#'.$filename. '" class="function"'.$rel.'>' .$display_value.($tag == "function" ? "()" : ""). '</a>'; } - return '<a href="#'.$filename. '" class="function"'.$rel.'>' .$display_value.($tag == "function" ? "()" : ""). '</a>'; + } elseif ($this->CURRENT_ID !== $filename) { + v("No link found for $value", VERBOSE_BROKEN_LINKS); } + return '<b>' .$display_value.($tag == "function" ? "()" : ""). '</b>'; }

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