From: Alexandre Emsenhuber Date: Sun, 1 Jan 2012 14:16:09 +0000 (+0000) Subject: Removed useless call to Title::getArticleID(); let WikiPage::doDeleteArticle() do... X-Git-Tag: 1.31.0-rc.0~25637 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=9a97ae018a5b93c49c3e445d89b7b44e21d4f281;p=lhc%2Fweb%2Fwiklou.git Removed useless call to Title::getArticleID(); let WikiPage::doDeleteArticle() do this itself --- diff --git a/includes/Article.php b/includes/Article.php index f87ca23e3f..7403fd9106 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1460,10 +1460,8 @@ class Article extends Page { public function doDelete( $reason, $suppress = false ) { global $wgOut; - $id = $this->getTitle()->getArticleID( Title::GAID_FOR_UPDATE ); - $error = ''; - if ( $this->mPage->doDeleteArticle( $reason, $suppress, $id, true, $error ) ) { + if ( $this->mPage->doDeleteArticle( $reason, $suppress, 0, true, $error ) ) { $deleted = $this->getTitle()->getPrefixedText(); $wgOut->setPageTitle( wfMessage( 'actioncomplete' ) );