From f9ca4518c216d7692f84d3458239f7a0da7325c9 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 25 Apr 2008 19:49:35 +0000 Subject: [PATCH] Removed unused global declaration of $wgFileStore and $wgUseSquid in RevisionDeleter::makeOldImagePrivate() and RevisionDeleter::makeOldImagePublic() --- includes/SpecialRevisiondelete.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/includes/SpecialRevisiondelete.php b/includes/SpecialRevisiondelete.php index cc6935a702..bb2166208a 100644 --- a/includes/SpecialRevisiondelete.php +++ b/includes/SpecialRevisiondelete.php @@ -1135,8 +1135,6 @@ class RevisionDeleter { * @returns mixed, timestamp string on success, false on failure */ function makeOldImagePrivate( $oimage ) { - global $wgFileStore, $wgUseSquid; - $transaction = new FSTransaction(); if( !FileStore::lock() ) { wfDebug( __METHOD__.": failed to acquire file store lock, aborting\n" ); @@ -1188,8 +1186,6 @@ class RevisionDeleter { * @returns mixed, string timestamp on success, false on failure */ function makeOldImagePublic( $oimage ) { - global $wgFileStore; - $transaction = new FSTransaction(); if( !FileStore::lock() ) { wfDebug( __METHOD__." could not acquire filestore lock\n" ); -- 2.20.1