cvs: phpweb / error.php

From: Date: Sat, 29 Dec 2007 01:29:26 +0000
Subject: cvs: phpweb / error.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-746@lists.php.net to get a copy of this message
bjori Sat Dec 29 01:29:26 2007 UTC Modified files: /phpweb error.php Log: Add BC handler for the old method filenames http://cvs.php.net/viewvc.cgi/phpweb/error.php?r1=1.75&r2=1.76&diff_format=u Index: phpweb/error.php diff -u phpweb/error.php:1.75 phpweb/error.php:1.76 --- phpweb/error.php:1.75 Tue Nov 20 22:10:00 2007 +++ phpweb/error.php Sat Dec 29 01:29:26 2007 @@ -1,6 +1,6 @@ <?php -// $Id: error.php,v 1.75 2007/11/20 22:10:00 bjori Exp $ +// $Id: error.php,v 1.76 2007/12/29 01:29:26 bjori Exp $ /* @@ -406,6 +406,16 @@ include_once $_SERVER['DOCUMENT_ROOT'] . $try; exit; } +// BC. The class methods are now classname.methodname +if (preg_match("!^manual/(.+)/function\.(.+)-(.+).php$!", $URI, $array)) { + $try = find_manual_page($array[1], $array[2]. "." .$array[3]); + if ($try) { + status_header(301); + mirror_redirect($try); + exit; + } +} + // ============================================================================ // 404 page for manual pages (eg. not built language)

« previous php.webmaster (#746) next »