com web/php: Ignore the cookie and always enable the beta in prototype.php.net: include/prepend.inc

From: Date: Tue, 28 Dec 2010 11:45:44 +0000
Subject: com web/php: Ignore the cookie and always enable the beta in prototype.php.net: include/prepend.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23726@lists.php.net to get a copy of this message
Commit: a7e58aa8cc3425f38138a063d153e6f737ddf0cb Author: Hannes Magnusson <bjori@php.net> Tue, 28 Dec 2010 11:45:44 +0000 Parents: 191ca694f73ef81b6b9a8365d06031320b04e555 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=a7e58aa8cc3425f38138a063d153e6f737ddf0cb Log: Ignore the cookie and always enable the beta in prototype.php.net Changed paths: M include/prepend.inc Diff: diff --git a/include/prepend.inc b/include/prepend.inc index 80d6bc7..34dc42b 100644 --- a/include/prepend.inc +++ b/include/prepend.inc @@ -171,10 +171,16 @@ function myphpnet_setbeta($bool = false) { } function myphpnet_beta() { global $MYPHPNET; + global $MYSITE; if (isset($_GET["beta"])) { return (bool)$_GET["beta"]; } + + if ($MYSITE == "http://prototype.php..net/") { + return true; + } + if (isset($MYPHPNET[4]) && $MYPHPNET[4]) { return true; }

« previous php.webmaster (#23726) next »