From: Alexandre Emsenhuber Date: Tue, 3 Jan 2012 16:20:56 +0000 (+0000) Subject: Removed useless call to Title::getArticleID(); let WikiPage::doDeleteArticle() do... X-Git-Tag: 1.31.0-rc.0~25589 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=0bf95761a2c16e4c121c64e60fa56b5cd70099a2;p=lhc%2Fweb%2Fwiklou.git Removed useless call to Title::getArticleID(); let WikiPage::doDeleteArticle() do this itself --- diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index 9c70a6477b..d9f3e1b492 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -143,13 +143,12 @@ class FileDeleteForm { } } else { $status = Status::newFatal( 'error' ); - $id = $title->getArticleID( Title::GAID_FOR_UPDATE ); $page = WikiPage::factory( $title ); $dbw = wfGetDB( DB_MASTER ); try { // delete the associated article first $error = ''; - if ( $page->doDeleteArticle( $reason, $suppress, $id, false, $error, $user ) ) { + if ( $page->doDeleteArticle( $reason, $suppress, 0, false, $error, $user ) ) { $status = $file->delete( $reason, $suppress ); if( $status->ok ) { $dbw->commit();