com web/php: Allow my.php cookie to also affect docs/prototype, but leave default for them as true.: include/prepend.inc

From: Date: Wed, 29 Jun 2011 01:26:25 +0000
Subject: com web/php: Allow my.php cookie to also affect docs/prototype, but leave default for them as true.: include/prepend.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23526@lists.php.net to get a copy of this message
Commit: 49b0dfbf1734c17ae2fdabb2367e02ae7b4f219f Author: Philip Olson <philip@php.net> Wed, 29 Jun 2011 01:26:25 +0000 Parents: 1e09d7fc91ef3a5804af27c232a3bc1a50d16a6a Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=49b0dfbf1734c17ae2fdabb2367e02ae7b4f219f Log: Allow my.php cookie to also affect docs/prototype, but leave default for them as true. Changed paths: M include/prepend.inc Diff: diff --git a/include/prepend.inc b/include/prepend.inc index b1b59ee..386b35a 100644 --- a/include/prepend.inc +++ b/include/prepend.inc @@ -177,11 +177,11 @@ function myphpnet_beta() { return (bool)$_GET["beta"]; } - if ($MYSITE == "http://prototype.php.net/" || $MYSITE == "http://docs.php.net/") { - return true; + if (isset($MYPHPNET[4])) { + return (bool)$MYPHPNET[4]; } - if (isset($MYPHPNET[4]) && $MYPHPNET[4]) { + if ($MYSITE == "http://prototype.php.net/" || $MYSITE == "http://docs.php.net/") { return true; }

« previous php.webmaster (#23526) next »