Use Status::isOK() method in FileDeleteForm
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 20 Sep 2016 22:57:35 +0000 (15:57 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 20 Sep 2016 22:57:35 +0000 (15:57 -0700)
Change-Id: I3c21ee1f0ecc4077772ddba6e740a67ed143ece0

includes/FileDeleteForm.php

index 65638f2..47360df 100644 (file)
@@ -125,7 +125,7 @@ class FileDeleteForm {
                                        $status->getWikiText( 'filedeleteerror-short', 'filedeleteerror-long' )
                                        . '</div>' );
                        }
-                       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