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' );
}
public function onSuccess() {
$out = $this->getOutput();
- $out->setSubtitle( wfMsg( 'lockdbsuccesssub' ) );
+ $out->addSubtitle( $this->msg( 'lockdbsuccesssub' ) );
$out->addWikiMsg( 'lockdbsuccesstext' );
}
}