svn: /web/php/trunk/include/ prepend.inc
| From: | Philip Olson | Date: | Wed, 29 Jun 2011 01:26:25 +0000 |
| Subject: | svn: /web/php/trunk/include/ prepend.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11350@lists.php.net to get a copy of this message | ||
philip Wed, 29 Jun 2011 01:26:25 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312613
Log:
Allow my.php cookie to also affect docs/prototype, but leave default for them as true.
Changed paths:
U web/php/trunk/include/prepend.inc
Modified: web/php/trunk/include/prepend.inc
===================================================================
--- web/php/trunk/include/prepend.inc 2011-06-29 00:04:43 UTC (rev 312612)
+++ web/php/trunk/include/prepend.inc 2011-06-29 01:26:25 UTC (rev 312613)
@@ -177,11 +177,11 @@
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;
}