From 9605ac2f5f42305a8859094659a861a46d9c3d85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Fri, 29 Aug 2014 19:42:26 +0200 Subject: [PATCH] ApiQueryBase: wfDeprecated() takes a string as second parameter, not number Change-Id: I86902f6f10928ef19efab56dcf065418ea1139ca --- includes/api/ApiQueryBase.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index afb939befe..6b08fc5c87 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -576,7 +576,7 @@ abstract class ApiQueryBase extends ApiBase { * @return bool True if acceptable, false otherwise */ protected function checkRowCount() { - wfDeprecated( __METHOD__, 1.24 ); + wfDeprecated( __METHOD__, '1.24' ); $db = $this->getDB(); $this->profileDBIn(); $rowcount = $db->estimateRowCount( @@ -603,7 +603,7 @@ abstract class ApiQueryBase extends ApiBase { * @return string Page title with underscores */ public function titleToKey( $title ) { - wfDeprecated( __METHOD__, 1.24 ); + wfDeprecated( __METHOD__, '1.24' ); // Don't throw an error if we got an empty string if ( trim( $title ) == '' ) { return ''; @@ -623,7 +623,7 @@ abstract class ApiQueryBase extends ApiBase { * @return string Page title with spaces */ public function keyToTitle( $key ) { - wfDeprecated( __METHOD__, 1.24 ); + wfDeprecated( __METHOD__, '1.24' ); // Don't throw an error if we got an empty string if ( trim( $key ) == '' ) { return ''; @@ -644,7 +644,7 @@ abstract class ApiQueryBase extends ApiBase { * @return string Key part with underscores */ public function keyPartToTitle( $keyPart ) { - wfDeprecated( __METHOD__, 1.24 ); + wfDeprecated( __METHOD__, '1.24' ); return substr( $this->keyToTitle( $keyPart . 'x' ), 0, -1 ); } -- 2.20.1