Replace deprecated methods.
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 7 Sep 2012 22:28:16 +0000 (00:28 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 7 Sep 2012 22:28:16 +0000 (00:28 +0200)
Also updated code formatting.

Change-Id: I188b5d29c9496383df10c391b29e9d26e59e8aeb

includes/Article.php
includes/logging/LogEventsList.php
languages/classes/LanguageWa.php

index a3fb747..bec5f14 100644 (file)
@@ -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
index 6016641..4de1a97 100644 (file)
@@ -166,7 +166,7 @@ class LogEventsList extends ContextSource {
                        $query[$queryKey] = $hideVal;
 
                        $link = Linker::linkKnown(
-                               $this->getDisplayTitle(),
+                               $this->getTitle(),
                                $messages[$hideVal],
                                array(),
                                $query
index 8a4aca6..9e90c7f 100644 (file)
@@ -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