From: Siebrand Mazeland Date: Tue, 3 Dec 2013 21:47:43 +0000 (+0100) Subject: Add deprecation warnings for log related methods X-Git-Tag: 1.31.0-rc.0~17791^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=a222eb8767ba35ee347883f14765c1c3936edbdb;p=lhc%2Fweb%2Fwiklou.git Add deprecation warnings for log related methods * LogEventsList::getDisplayTitle() was deprecated in 1.20. * LogPage::logHeader() was deprecated in 1.19. * LogPage::logName() was deprecated in 1.19. No remaining uses in core. Change-Id: I073f11a7776f6e3809d20d50e61e57486b77f494 --- diff --git a/includes/logging/LogEventsList.php b/includes/logging/LogEventsList.php index fabe153b20..e1f8e10c1d 100644 --- a/includes/logging/LogEventsList.php +++ b/includes/logging/LogEventsList.php @@ -63,6 +63,7 @@ class LogEventsList extends ContextSource { * @return Title object */ public function getDisplayTitle() { + wfDeprecated( __METHOD__, '1.20' ); return $this->getTitle(); } diff --git a/includes/logging/LogPage.php b/includes/logging/LogPage.php index 51c41a8fe1..9665cde889 100644 --- a/includes/logging/LogPage.php +++ b/includes/logging/LogPage.php @@ -200,6 +200,8 @@ class LogPage { public static function logName( $type ) { global $wgLogNames; + wfDeprecated( __METHOD__, '1.21' ); + if ( isset( $wgLogNames[$type] ) ) { return str_replace( '_', ' ', wfMessage( $wgLogNames[$type] )->text() ); } else { @@ -219,6 +221,8 @@ class LogPage { public static function logHeader( $type ) { global $wgLogHeaders; + wfDeprecated( __METHOD__, '1.21' ); + return wfMessage( $wgLogHeaders[$type] )->parse(); }