Revert r44292 "Assign by ref to make sure cache fields carry over"
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 10 Dec 2008 23:29:43 +0000 (23:29 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 10 Dec 2008 23:29:43 +0000 (23:29 +0000)
This isn't PHP 4; the object's fields are changed on the object itself just fine. Unless people are changing the global variable $wgTitle to something different this should be fine. If there is a problem that this fixes, that's probably a problem itself and should be fixed in a cleaner way :D

includes/Skin.php

index d02c077..03d6dd2 100644 (file)
@@ -266,7 +266,7 @@ class Skin extends Linker {
 
        function setMembers(){
                global $wgTitle, $wgUser;
-               $this->mTitle =& $wgTitle;
+               $this->mTitle = $wgTitle;
                $this->mUser = $wgUser;
                $this->userpage = $wgUser->getUserPage()->getPrefixedText();
                $this->usercss = false;