From 7b014c2c170a48a5c048820fc59bf5b97c491643 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Fri, 27 Nov 2009 17:46:35 +0000 Subject: [PATCH] Fix a Fatal: Call to a member function isLoggedIn() on a non-object in /var/www/w/includes/FileDeleteForm.php on line 115 --- includes/FileDeleteForm.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index 39cb2cf9f3..1937cedc5c 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -91,6 +91,7 @@ class FileDeleteForm { } public static function doDelete( &$title, &$file, &$oldimage, $reason, $suppress ) { + global $wgUser; $article = null; if( $oldimage ) { $status = $file->deleteOld( $oldimage, $reason, $suppress ); -- 2.20.1