*Replace calls to $this->blockedIPpage() with $wgOut->blockedPage() since the former refers to a non-existent function in EditPage.
This commit is contained in:
parent
2eb7c35609
commit
62c20a7563
1 changed files with 4 additions and 7 deletions
|
|
@ -512,7 +512,8 @@ END
|
|||
return;
|
||||
}
|
||||
if ( $wgUser->isBlocked() ) {
|
||||
return $this->blockedIPpage();
|
||||
$wgOut->blockedPage();
|
||||
return;
|
||||
}
|
||||
if ( wfReadOnly() ) {
|
||||
$wgOut->readOnlyPage();
|
||||
|
|
@ -645,7 +646,8 @@ END
|
|||
return;
|
||||
}
|
||||
if ( $wgUser->isBlocked() ) {
|
||||
return $this->blockedIPpage();
|
||||
$wgOut->blockedPage();
|
||||
return;
|
||||
}
|
||||
if( !$wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ), $oldimage ) ) {
|
||||
$wgOut->showErrorPage( 'internalerror', 'sessionfailure' );
|
||||
|
|
@ -686,11 +688,6 @@ END
|
|||
$descTitle = $img->getTitle();
|
||||
$wgOut->returnToMain( false, $descTitle->getPrefixedText() );
|
||||
}
|
||||
|
||||
function blockedIPpage() {
|
||||
$edit = new EditPage( $this );
|
||||
return $edit->blockedIPpage();
|
||||
}
|
||||
|
||||
/**
|
||||
* Override handling of action=purge
|
||||
|
|
|
|||
Loading…
Reference in a new issue