From: Raimond Spekking Date: Fri, 27 Nov 2009 17:46:35 +0000 (+0000) Subject: Fix a Fatal: Call to a member function isLoggedIn() on a non-object in /var/www/w... X-Git-Tag: 1.31.0-rc.0~38694 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=7b014c2c170a48a5c048820fc59bf5b97c491643;p=lhc%2Fweb%2Fwiklou.git Fix a Fatal: Call to a member function isLoggedIn() on a non-object in /var/www/w/includes/FileDeleteForm.php on line 115 --- 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 );