From a5f35595116f458e52d525cd50a6d2fa8f06fe98 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 20 Sep 2016 15:57:35 -0700 Subject: [PATCH] Use Status::isOK() method in FileDeleteForm Change-Id: I3c21ee1f0ecc4077772ddba6e740a67ed143ece0 --- includes/FileDeleteForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1