From 9a97ae018a5b93c49c3e445d89b7b44e21d4f281 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 1 Jan 2012 14:16:09 +0000 Subject: [PATCH] Removed useless call to Title::getArticleID(); let WikiPage::doDeleteArticle() do this itself --- includes/Article.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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' ) ); -- 2.20.1