From 24bc5fbec25505ab57de0860a8b4ae9092d9cfce Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 5 Jan 2015 11:32:44 -0800 Subject: [PATCH] Remove silly reference ampersands from database functions in maint This is 2015 and we use PHP5 I think. Change-Id: I012de0df540fc91577585de939bb929c68664222 --- maintenance/Maintenance.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 2f8b7d2b12..4b07d2ff05 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -1073,7 +1073,7 @@ abstract class Maintenance { * * @return DatabaseBase */ - protected function &getDB( $db, $groups = array(), $wiki = false ) { + protected function getDB( $db, $groups = array(), $wiki = false ) { if ( is_null( $this->mDb ) ) { return wfGetDB( $db, $groups, $wiki ); } else { @@ -1086,7 +1086,7 @@ abstract class Maintenance { * * @param DatabaseBase $db Database object to be used */ - public function setDB( &$db ) { + public function setDB( $db ) { $this->mDb = $db; } @@ -1094,7 +1094,7 @@ abstract class Maintenance { * Lock the search index * @param DatabaseBase &$db */ - private function lockSearchindex( &$db ) { + private function lockSearchindex( $db ) { $write = array( 'searchindex' ); $read = array( 'page', 'revision', 'text', 'interwiki', 'l10n_cache', 'user' ); $db->lockTables( $read, $write, __CLASS__ . '::' . __METHOD__ ); @@ -1104,7 +1104,7 @@ abstract class Maintenance { * Unlock the tables * @param DatabaseBase &$db */ - private function unlockSearchindex( &$db ) { + private function unlockSearchindex( $db ) { $db->unlockTables( __CLASS__ . '::' . __METHOD__ ); } @@ -1113,7 +1113,7 @@ abstract class Maintenance { * Since the lock is low-priority, queued reads will be able to complete * @param DatabaseBase &$db */ - private function relockSearchindex( &$db ) { + private function relockSearchindex( $db ) { $this->unlockSearchindex( $db ); $this->lockSearchindex( $db ); } -- 2.20.1