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: | Ferenc Kovacs | 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-15753@lists.php.net to get a copy of this message | ||
Commit: 2d5f7af0f346456ec46d4675ba640369fcc53fec
Author: Ferenc Kovacs <tyra3l@gmail.com> Wed, 10 Apr 2013 00:14:58 +0200
Parents: 034dc8f31369aca84a36ea0faff59117046841b5
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=2d5f7af0f346456ec46d4675ba640369fcc53fec
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)