The ampersand for references is unnecessary when the function is declared to accept...
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 12 Jun 2004 03:17:39 +0000 (03:17 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 12 Jun 2004 03:17:39 +0000 (03:17 +0000)
includes/ObjectCache.php
includes/Skin.php
includes/SkinPHPTal.php
includes/Title.php

index 4ccf30a..ce511ff 100644 (file)
@@ -213,7 +213,7 @@ class /* abstract */ SqlBagOStuff extends BagOStuff {
                $this->delete( $key );
                $this->_query(
                        "INSERT INTO $0 (keyname,value,exptime) VALUES('$1','$2','$exp')",
-                       $key, serialize(&$value));
+                       $key, serialize($value));
                return true; /* ? */
        }
        
index 7b097b4..bc46059 100644 (file)
@@ -402,7 +402,7 @@ class Skin {
                if($wgUseCategoryBrowser) {
                        $s .= '<br/><hr/>';
                        $catstack = array();
-                       $s.= $wgTitle->getAllParentCategories(&$catstack);
+                       $s.= $wgTitle->getAllParentCategories($catstack);
                }
                
                return $s;
index c8c6ec9..53e33ad 100644 (file)
@@ -90,7 +90,7 @@
                        $tpl->set( "title", $wgOut->getPageTitle() );
                        $tpl->set( "pagetitle", $wgOut->getHTMLTitle() );
                        
-                       $tpl->setRef( "thispage", &$this->thispage );
+                       $tpl->setRef( "thispage", $this->thispage );
                        $subpagestr = $this->subPageSubtitle();
                        $tpl->set( 
                                "subtitle",  !empty($subpagestr)?
                                                'ttip' => wfMsg('tooltip-'.$format)
                                        );
                                }
-                               $tpl->setRef( 'feeds', &$feeds );
+                               $tpl->setRef( 'feeds', $feeds );
                        }
-                       $tpl->setRef( 'mimetype', &$wgMimeType );
-                       $tpl->setRef( 'charset', &$wgOutputEncoding );
+                       $tpl->setRef( 'mimetype', $wgMimeType );
+                       $tpl->setRef( 'charset', $wgOutputEncoding );
                        $tpl->set( 'headlinks', $out->getHeadLinks() );
-                       $tpl->setRef( 'skinname', &$this->skinname );
-                       $tpl->setRef( "loggedin", &$this->loggedin );
+                       $tpl->setRef( 'skinname', $this->skinname );
+                       $tpl->setRef( "loggedin", $this->loggedin );
                        $tpl->set('nsclass', 'ns-'.$wgTitle->getNamespace());
                        /* XXX currently unused, might get useful later
                        $tpl->set( "editable", ($wgTitle->getNamespace() != NS_SPECIAL ) );
                        $tpl->set( "sysop", $wgUser->isSysop() );
                        */
                        $tpl->set( "searchaction", $this->escapeSearchLink() );
-                       $tpl->setRef( "stylepath", &$wgStylePath );
-                       $tpl->setRef( "logopath", &$wgLogo );
-                       $tpl->setRef( "lang", &$wgLanguageCode );
+                       $tpl->setRef( "stylepath", $wgStylePath );
+                       $tpl->setRef( "logopath", $wgLogo );
+                       $tpl->setRef( "lang", $wgLanguageCode );
                        $tpl->set( "dir", $wgLang->isRTL() ? "rtl" : "ltr" );
                        $tpl->set( "rtl", $wgLang->isRTL() );
                        $tpl->set( "langname", $wgLang->getLanguageName( $wgLanguageCode ) );
-                       $tpl->setRef( "username", &$this->username );
-                       $tpl->setRef( "userpage", &$this->userpage);
-                       $tpl->setRef( "userpageurl", &$this->userpageUrlDetails['href']);
-                       $tpl->setRef( "usercss", &$this->usercss);
-                       $tpl->setRef( "userjs", &$this->userjs);
-                       $tpl->setRef( "userjsprev", &$this->userjsprev);
+                       $tpl->setRef( "username", $this->username );
+                       $tpl->setRef( "userpage", $this->userpage);
+                       $tpl->setRef( "userpageurl", $this->userpageUrlDetails['href']);
+                       $tpl->setRef( "usercss", $this->usercss);
+                       $tpl->setRef( "userjs", $this->userjs);
+                       $tpl->setRef( "userjsprev", $this->userjsprev);
                        if($this->loggedin) {
                                $tpl->set( "jsvarurl", $this->makeUrl('-','action=raw&gen=js&smaxage=0') );
                        } else {
                                $ntl = "";
                        }
 
-                       $tpl->setRef( "newtalk", &$ntl );
-                       $tpl->setRef( "skin", &$this);
+                       $tpl->setRef( "newtalk", $ntl );
+                       $tpl->setRef( "skin", $this);
                        $tpl->set( "logo", $this->logoText() );
                        if ( $wgOut->isArticle() and (!isset( $oldid ) or isset( $diff )) and 0 != $wgArticle->getID() ) {
                                if ( !$wgDisableCounters ) {
                        $tpl->set( "disclaimer", $this->disclaimerLink() );
                        $tpl->set( "about", $this->aboutLink() );
 
-                       $tpl->setRef( "debug", &$out->mDebugtext );
+                       $tpl->setRef( "debug", $out->mDebugtext );
                        $tpl->set( "reporttime", $out->reportTime() );
                        $tpl->set( "sitenotice", $wgSiteNotice );
                        
-                       $tpl->setRef( "bodytext", &$out->mBodytext );
+                       $tpl->setRef( "bodytext", $out->mBodytext );
 
                        $language_urls = array();
                        foreach( $wgOut->getLanguageLinks() as $l ) {
                                'class' => $wgLang->isRTL() ? 'rtl' : 'ltr');
                        }
                        if(count($language_urls)) {
-                               $tpl->setRef( 'language_urls', &$language_urls);
+                               $tpl->setRef( 'language_urls', $language_urls);
                        } else {
                                $tpl->set('language_urls', false);
                        }
                        $tpl->set('personal_urls', $this->buildPersonalUrls());
                        $content_actions = $this->buildContentActionUrls();
-                       $tpl->setRef('content_actions', &$content_actions);
+                       $tpl->setRef('content_actions', $content_actions);
                        // XXX: attach this from javascript, same with section editing
                        if($this->iseditable && $wgUser->getOption("editondblclick") ) 
                        {
                                $talk_class = (Namespace::isTalk( $wgTitle->getNamespace()) ? 'selected' : false);                              
                                $talktitle = Title::newFromText( $this->titletxt );
                                $talktitle = $talktitle->getTalkPage();
-                               $this->checkTitle(&$talktitle, &$this->titletxt);       
+                               $this->checkTitle($talktitle, $this->titletxt); 
                                if($talktitle->getArticleId() != 0) { 
                                        $content_actions['talk'] = array(
                                                'class' => $talk_class,
index cba6d53..2b6603a 100644 (file)
@@ -1243,7 +1243,7 @@ class Title {
                                # add it to the stack
                                $stack[$this->getText()] = $tpar->getText();
                                # grab its parents
-                               $result .= $tpar->getAllParentCategories(&$stack);
+                               $result .= $tpar->getAllParentCategories($stack);
                        }
                }