Fix a Fatal: Call to a member function isLoggedIn() on a non-object in /var/www/w...
authorRaimond Spekking <raymond@users.mediawiki.org>
Fri, 27 Nov 2009 17:46:35 +0000 (17:46 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Fri, 27 Nov 2009 17:46:35 +0000 (17:46 +0000)
includes/FileDeleteForm.php

index 39cb2cf..1937ced 100644 (file)
@@ -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 );