recentchanges should specify current ID explicitly.
* (bug 2609) Fix text justification preferenced with MonoBook skin.
* (bug 2594) Display article tab as red for non-existent articles.
+* (bug 2656) Fix regression: prevent blocked users from reverting images
=== Caveats ===
$wgOut->sysopRequired();
return;
}
+ if ( $wgUser->isBlocked() ) {
+ return $this->blockedIPpage();
+ }
if ( wfReadOnly() ) {
$wgOut->readOnlyPage();
return;
$wgOut->sysopRequired();
return;
}
+ if ( $wgUser->isBlocked() ) {
+ return $this->blockedIPpage();
+ }
if( !$wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ), $oldimage ) ) {
$wgOut->errorpage( 'internalerror', 'sessionfailure' );
return;
$descTitle = $img->getTitle();
$wgOut->returnToMain( false, $descTitle->getPrefixedText() );
}
+
+ function blockedIPpage() {
+ require_once( 'EditPage.php' );
+ $edit = new EditPage( $this );
+ return $edit->blockedIPpage();
+ }
+
}
/**