From a222eb8767ba35ee347883f14765c1c3936edbdb Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 3 Dec 2013 22:47:43 +0100 Subject: [PATCH] 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 --- includes/logging/LogEventsList.php | 1 + includes/logging/LogPage.php | 4 ++++ 2 files changed, 5 insertions(+) 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(); } -- 2.20.1