Commit:    2d5f7af0f346456ec46d4675ba640369fcc53fec
Author:    Ferenc Kovacs <[email protected]>         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)


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

Reply via email to