From: Siebrand Mazeland Date: Fri, 7 Sep 2012 22:28:16 +0000 (+0200) Subject: Replace deprecated methods. X-Git-Tag: 1.31.0-rc.0~22424^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=21b592d1ad26d91d6a0a8797befca34596b6e8c1;p=lhc%2Fweb%2Fwiklou.git Replace deprecated methods. Also updated code formatting. Change-Id: I188b5d29c9496383df10c391b29e9d26e59e8aeb --- diff --git a/includes/Article.php b/includes/Article.php index a3fb747176..bec5f14887 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1243,7 +1243,7 @@ class Article extends Page { if ( $appendSubtitle ) { $out = $this->getContext()->getOutput(); - $out->appendSubtitle( wfMessage( 'redirectpagesub' )->escaped() ); + $out->addSubtitle( wfMessage( 'redirectpagesub' )->escaped() ); } // the loop prepends the arrow image before the link, so the first case needs to be outside diff --git a/includes/logging/LogEventsList.php b/includes/logging/LogEventsList.php index 6016641c43..4de1a9748c 100644 --- a/includes/logging/LogEventsList.php +++ b/includes/logging/LogEventsList.php @@ -166,7 +166,7 @@ class LogEventsList extends ContextSource { $query[$queryKey] = $hideVal; $link = Linker::linkKnown( - $this->getDisplayTitle(), + $this->getTitle(), $messages[$hideVal], array(), $query diff --git a/languages/classes/LanguageWa.php b/languages/classes/LanguageWa.php index 8a4aca66f1..9e90c7f4ac 100644 --- a/languages/classes/LanguageWa.php +++ b/languages/classes/LanguageWa.php @@ -58,7 +58,9 @@ class LanguageWa extends Language { */ function date( $ts, $adj = false, $format = true, $tc = false ) { $ts = wfTimestamp( TS_MW, $ts ); - if ( $adj ) { $ts = $this->userAdjust( $ts, $tc ); } + if ( $adj ) { + $ts = $this->userAdjust( $ts, $tc ); + } $datePreference = $this->dateFormat( $format ); # ISO (YYYY-mm-dd) format