Commit:    bff88bce9db668b9cda46c9ecdfa4c60c1e3631c
Author:    Hannes Magnusson <[email protected]>         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;
     }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to