From: Brion Vibber Date: Tue, 8 Feb 2005 13:55:13 +0000 (+0000) Subject: * Block image revert without valid login X-Git-Tag: 1.5.0alpha1~755 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=180876cc83bd98bafa05b321e579ea8abeee7946;p=lhc%2Fweb%2Fwiklou.git * Block image revert without valid login --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 21dd58c265..be02750e3c 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -359,6 +359,10 @@ class ImagePage extends Article { $wgOut->readOnlyPage(); return; } + if( $wgUser->getId() == 0 ) { + $wgOut->errorpage( 'uploadnologin', 'uploadnologintext' ); + return; + } if ( ! $this->mTitle->userCanEdit() ) { $wgOut->sysopRequired(); return;