cvs: phpweb /include manual-lookup.inc

From: Date: Tue, 15 Apr 2008 08:29:35 +0000
Subject: cvs: phpweb /include manual-lookup.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1545@lists.php.net to get a copy of this message
bjori Tue Apr 15 08:29:35 2008 UTC Modified files: /phpweb/include manual-lookup.inc Log: Add a BC for ref. => book. renaming http://cvs.php.net/viewvc.cgi/phpweb/include/manual-lookup.inc?r1=1.33&r2=1.34&diff_format=u Index: phpweb/include/manual-lookup.inc diff -u phpweb/include/manual-lookup.inc:1.33 phpweb/include/manual-lookup.inc:1.34 --- phpweb/include/manual-lookup.inc:1.33 Mon Apr 14 20:34:13 2008 +++ phpweb/include/manual-lookup.inc Tue Apr 15 08:29:35 2008 @@ -1,6 +1,6 @@ <?php // -*- C++ -*- -// $Id: manual-lookup.inc,v 1.33 2008/04/14 20:34:13 bjori Exp $ +// $Id: manual-lookup.inc,v 1.34 2008/04/15 08:29:35 bjori Exp $ // We need this for error reporting include_once $_SERVER['DOCUMENT_ROOT'] . '/include/errors.inc'; @@ -78,6 +78,12 @@ } } + // BC: Few references pages where moved to book. + if (strpos($keyword, "ref.") === 0) { + $kw = substr_replace($keyword, "book.", 0, 4); + return find_manual_page($lang, $kw); + } + // Nothing found return ""; }

« previous php.webmaster (#1545) next »