Merge "Emit deprecation warnings for Article::doEdit and WikiPage::doEdit"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 29 Sep 2016 07:33:52 +0000 (07:33 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 29 Sep 2016 07:33:52 +0000 (07:33 +0000)
1  2 
includes/page/WikiPage.php

@@@ -1577,7 -1577,7 +1577,7 @@@ class WikiPage implements Page, IDBAcce
         * @deprecated since 1.21: use doEditContent() instead.
         */
        public function doEdit( $text, $summary, $flags = 0, $baseRevId = false, $user = null ) {
-               ContentHandler::deprecated( __METHOD__, '1.21' );
+               wfDeprecated( __METHOD__, '1.21' );
  
                $content = ContentHandler::makeContent( $text, $this->getTitle() );
  
                $dbr = wfGetDB( DB_REPLICA );
                $res = $dbr->select( 'categorylinks',
                        [ 'cl_to AS page_title, ' . NS_CATEGORY . ' AS page_namespace' ],
 -                      // Have to do that since DatabaseBase::fieldNamesWithAlias treats numeric indexes
 +                      // Have to do that since Database::fieldNamesWithAlias treats numeric indexes
                        // as not being aliases, and NS_CATEGORY is numeric
                        [ 'cl_from' => $id ],
                        __METHOD__ );