$fp = fopen( $wgReadOnlyFile, 'w' );
if ( false === $fp ) {
- $wgOut->fileNotFoundError( $wgReadOnlyFile );
+ $wgOut->showFileNotFoundError( $wgReadOnlyFile );
return;
}
fwrite( $fp, $this->reason );
}
function showSuccess() {
- global $wgOut, $wgUser;
+ global $wgOut;
$wgOut->setPagetitle( wfMsg( 'lockdb' ) );
$wgOut->setSubtitle( wfMsg( 'lockdbsuccesssub' ) );