Bug 32673: Keep the username in the input field if not existing
[lhc/web/wiklou.git] / includes / specials / SpecialLockdb.php
index 9dec018..c145351 100644 (file)
@@ -37,11 +37,11 @@ class SpecialLockdb extends FormSpecialPage {
                return false;
        }
 
-       public function userCanExecute( User $user ) {
-               parent::userCanExecute( $user );
+       public function checkExecutePermissions( User $user ) {
+               global $wgReadOnlyFile;
 
+               parent::checkExecutePermissions( $user );
                # If the lock file isn't writable, we can do sweet bugger all
-               global $wgReadOnlyFile;
                if ( !is_writable( dirname( $wgReadOnlyFile ) ) ) {
                        throw new ErrorPageError( 'lockdb', 'lockfilenotwritable' );
                }
@@ -101,7 +101,7 @@ class SpecialLockdb extends FormSpecialPage {
 
        public function onSuccess() {
                $out = $this->getOutput();
-               $out->setSubtitle( wfMsg( 'lockdbsuccesssub' ) );
+               $out->addSubtitle( $this->msg( 'lockdbsuccesssub' ) );
                $out->addWikiMsg( 'lockdbsuccesstext' );
        }
 }