com web/php: $MYSITE is www.php.net on the primary site now, so this check(without the www. prefix) would always fail: include/site.inc
| From: | Paul Dragoonis | Date: | Tue, 09 Apr 2013 22:14:58 +0000 |
| Subject: | com web/php: $MYSITE is www.php.net on the primary site now, so this check(without the www. prefix) would always fail: include/site.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22874@lists.php.net to get a copy of this message | ||
Commit: 77b58f989dc9f909295d9d11527854f8b1eb8c49
Author: Ferenc Kovacs <tyra3l@gmail.com> Wed, 10 Apr 2013 00:14:58 +0200
Parents: 3354f3f2e826665fea9e63d2e1cb5a33e2c199f8
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=77b58f989dc9f909295d9d11527854f8b1eb8c49
Log:
$MYSITE is www.php.net on the primary site now, so this check(without the www. prefix) would always
fail
Changed paths:
M include/site.inc
Diff:
diff --git a/include/site.inc b/include/site.inc
index 7edbbac..31b7e0b 100644
--- a/include/site.inc
+++ b/include/site.inc
@@ -17,7 +17,7 @@ function is_primary_site($site = FALSE)
{
global $MYSITE;
if (!$site) { $site = $MYSITE; }
- return $site == "http://php.net/";
+ return ($site == "http://www.php.net/" ||
$site == "http://php.net/" );
}
// Returns true if the current (or specified)