Merge "Convert Special:Undelete search form to use OOUI"
[lhc/web/wiklou.git] / includes / page / Article.php
index dd54232..dc4096c 100644 (file)
@@ -214,7 +214,6 @@ class Article implements Page {
         * @since 1.21
         */
        protected function getContentObject() {
-
                if ( $this->mPage->getId() === 0 ) {
                        # If this is a MediaWiki:x message, then load the messages
                        # and return the message value for x.
@@ -569,8 +568,8 @@ class Article implements Page {
                                        $outputPage->setRevisionTimestamp( $this->mPage->getTimestamp() );
 
                                        if ( !Hooks::run( 'ArticleContentViewCustom',
-                                                       [ $this->fetchContentObject(), $this->getTitle(), $outputPage ] ) ) {
-
+                                               [ $this->fetchContentObject(), $this->getTitle(), $outputPage ] )
+                                       ) {
                                                # Allow extensions do their own custom view for certain pages
                                                $outputDone = true;
                                        }
@@ -1434,6 +1433,8 @@ class Article implements Page {
         * @param bool $appendSubtitle [optional]
         * @param bool $forceKnown Should the image be shown as a bluelink regardless of existence?
         * @return string Containing HTML with redirect link
+        *
+        * @deprecated since 1.30
         */
        public function viewRedirect( $target, $appendSubtitle = true, $forceKnown = false ) {
                $lang = $this->getTitle()->getPageLanguage();