From: Bartosz DziewoƄski Date: Fri, 29 Aug 2014 17:42:26 +0000 (+0200) Subject: ApiQueryBase: wfDeprecated() takes a string as second parameter, not number X-Git-Tag: 1.31.0-rc.0~14225^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=9605ac2f5f42305a8859094659a861a46d9c3d85;p=lhc%2Fweb%2Fwiklou.git ApiQueryBase: wfDeprecated() takes a string as second parameter, not number Change-Id: I86902f6f10928ef19efab56dcf065418ea1139ca --- 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 ); }