From: Alexandre Emsenhuber Date: Fri, 25 Apr 2008 19:49:35 +0000 (+0000) Subject: Removed unused global declaration of $wgFileStore and $wgUseSquid in RevisionDeleter... X-Git-Tag: 1.31.0-rc.0~48067 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=f9ca4518c216d7692f84d3458239f7a0da7325c9;p=lhc%2Fweb%2Fwiklou.git Removed unused global declaration of $wgFileStore and $wgUseSquid in RevisionDeleter::makeOldImagePrivate() and RevisionDeleter::makeOldImagePublic() --- 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" );