The war on redundant ampersand usage!
[lhc/web/wiklou.git] / includes / RecentChange.php
index 292e3f7..fced434 100644 (file)
@@ -70,7 +70,7 @@ class RecentChange
         * @return RecentChange
         */
        public static function newFromId( $rcid ) {
-               $dbr =& wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE );
                $res = $dbr->select( 'recentchanges', '*', array( 'rc_id' => $rcid ), __METHOD__ );
                if( $res && $dbr->numRows( $res ) > 0 ) {
                        $row = $dbr->fetchObject( $res );
@@ -116,7 +116,7 @@ class RecentChange
                global $wgLocalInterwiki, $wgPutIPinRC, $wgRC2UDPAddress, $wgRC2UDPPort, $wgRC2UDPPrefix;
                $fname = 'RecentChange::save';
 
-               $dbw =& wfGetDB( DB_MASTER );
+               $dbw = wfGetDB( DB_MASTER );
                if ( !is_array($this->mExtra) ) {
                        $this->mExtra = array();
                }
@@ -214,7 +214,7 @@ class RecentChange
        {
                $fname = 'RecentChange::markPatrolled';
 
-               $dbw =& wfGetDB( DB_MASTER );
+               $dbw = wfGetDB( DB_MASTER );
 
                $dbw->update( 'recentchanges',
                        array( /* SET */