From 180876cc83bd98bafa05b321e579ea8abeee7946 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 8 Feb 2005 13:55:13 +0000 Subject: [PATCH] * Block image revert without valid login --- includes/ImagePage.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.20.1