com web/php: Make ?beta=0 disable the new version on per-page basis (philip): include/prepend. inc

From: Date: Tue, 28 Dec 2010 09:26:01 +0000
Subject: com web/php: Make ?beta=0 disable the new version on per-page basis (philip): include/prepend. inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23731@lists.php.net to get a copy of this message
Commit: bff88bce9db668b9cda46c9ecdfa4c60c1e3631c Author: Hannes Magnusson <bjori@php.net> Tue, 28 Dec 2010 09:26:01 +0000 Parents: 813ca5b119f4d1e57f15726a1e4731d8faf11b81 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=bff88bce9db668b9cda46c9ecdfa4c60c1e3631c Log: Make ?beta=0 disable the new version on per-page basis (philip) Changed paths: M include/prepend.inc Diff: diff --git a/include/prepend.inc b/include/prepend.inc index bd9cd5c..80d6bc7 100644 --- a/include/prepend.inc +++ b/include/prepend.inc @@ -172,10 +172,10 @@ function myphpnet_setbeta($bool = false) { function myphpnet_beta() { global $MYPHPNET; - if (isset($MYPHPNET[4]) && $MYPHPNET[4]) { - return true; - } if (isset($_GET["beta"])) { + return (bool)$_GET["beta"]; + } + if (isset($MYPHPNET[4]) && $MYPHPNET[4]) { return true; }

« previous php.webmaster (#23731) next »