Update documentation for Sanitizer
[lhc/web/wiklou.git] / includes / WikiPage.php
index cc65ee8..f0a58d3 100644 (file)
@@ -908,13 +908,15 @@ class WikiPage implements Page, IDBAccessObject {
 
                // rd_fragment and rd_interwiki were added later, populate them if empty
                if ( $row && !is_null( $row->rd_fragment ) && !is_null( $row->rd_interwiki ) ) {
-                       return $this->mRedirectTarget = Title::makeTitle(
+                       $this->mRedirectTarget = Title::makeTitle(
                                $row->rd_namespace, $row->rd_title,
                                $row->rd_fragment, $row->rd_interwiki );
+                       return $this->mRedirectTarget;
                }
 
                // This page doesn't have an entry in the redirect table
-               return $this->mRedirectTarget = $this->insertRedirect();
+               $this->mRedirectTarget = $this->insertRedirect();
+               return $this->mRedirectTarget;
        }
 
        /**
@@ -3398,35 +3400,6 @@ class WikiPage implements Page, IDBAccessObject {
                return $this->doUpdateRestrictions( $limit, $expiry, $cascade, $reason, $user )->isOK();
        }
 
-       /**
-        * @deprecated since 1.18
-        */
-       public function quickEdit( $text, $comment = '', $minor = 0 ) {
-               wfDeprecated( __METHOD__, '1.18' );
-               global $wgUser;
-               $this->doQuickEdit( $text, $wgUser, $comment, $minor );
-       }
-
-       /**
-        * @deprecated since 1.18
-        */
-       public function viewUpdates() {
-               wfDeprecated( __METHOD__, '1.18' );
-               global $wgUser;
-               $this->doViewUpdates( $wgUser );
-       }
-
-       /**
-        * @deprecated since 1.18
-        * @param $oldid int
-        * @return bool
-        */
-       public function useParserCache( $oldid ) {
-               wfDeprecated( __METHOD__, '1.18' );
-               global $wgUser;
-               return $this->isParserCacheUsed( ParserOptions::newFromUser( $wgUser ), $oldid );
-       }
-
        /**
         * Returns a list of updates to be performed when this page is deleted. The updates should remove any information
         * about this page from secondary data stores such as links tables.