Re: cvs: phpweb /include layout.inc
| From: | Mehdi Achour | Date: | Wed, 12 Jan 2005 11:44:49 +0000 |
| Subject: | Re: cvs: phpweb /include layout.inc | ||
| References: | 1 2 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-27203@lists.php.net to get a copy of this message | ||
I did it in layout.inc because it was the only file mentionning control-structures.php :) I just had a look to error.php, and cannot find where I need to fix the code. Can you fix it for me ? (I'll learn with your commit)
didou
Gabor Hojtsy wrote:
This only fixes the slow engine AFAIS, and not the sqlite based quick engine, which works on php.net and on some more mirrors. The aliases in error.php are about to work with both, so it would probably be better to fix this there. GobaFix the php.net/if redirection http://cvs.php.net/diff.php/phpweb/include/layout.inc?r1=1.216&r2=1.217&ty=u Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.216 phpweb/include/layout.inc:1.217--- phpweb/include/layout.inc:1.216 Sun Jan 9 07:53:35 2005 +++ phpweb/include/layout.inc Tue Jan 11 10:57:54 2005@@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.216 2005/01/09 12:53:35 goba Exp $ */ +/* $Id: layout.inc,v 1.217 2005/01/11 15:57:54 didou Exp $ */ // Set the static content root differently on php.net $_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ? @@ -619,6 +619,9 @@$chap = "ref.$string.php"; $feat = "features.$string.php"; $struct = "control-structures.$string.php"; + if ($string == 'if') { + return "control-structures.php#control-structures.if"; + } if(@is_file($func)) return $func; else if(@is_file($chap)) return $chap; else if(@is_file($feat)) return $feat;