From: Aaron Schulz Date: Tue, 20 Sep 2016 22:57:35 +0000 (-0700) Subject: Use Status::isOK() method in FileDeleteForm X-Git-Tag: 1.31.0-rc.0~5435^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=a5f35595116f458e52d525cd50a6d2fa8f06fe98;p=lhc%2Fweb%2Fwiklou.git Use Status::isOK() method in FileDeleteForm Change-Id: I3c21ee1f0ecc4077772ddba6e740a67ed143ece0 --- diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index 65638f286f..47360df81f 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -125,7 +125,7 @@ class FileDeleteForm { $status->getWikiText( 'filedeleteerror-short', 'filedeleteerror-long' ) . '' ); } - if ( $status->ok ) { + if ( $status->isOK() ) { $wgOut->setPageTitle( wfMessage( 'actioncomplete' ) ); $wgOut->addHTML( $this->prepareMessage( 'filedelete-success' ) ); // Return to the main page if we just deleted all versions of the