From: Kunal Mehta Date: Wed, 6 Aug 2014 15:23:27 +0000 (+0100) Subject: SpecialUnusedimages: Use Config instead of globals X-Git-Tag: 1.31.0-rc.0~14573^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=c0a546c072d35551b417b0f8398fc9cc9228908b;p=lhc%2Fweb%2Fwiklou.git SpecialUnusedimages: Use Config instead of globals Change-Id: Iee9398ec8bc223b4833aa4055c32577cfc3227e1 --- diff --git a/includes/specials/SpecialUnusedimages.php b/includes/specials/SpecialUnusedimages.php index 743c5878f1..36ec09ec81 100644 --- a/includes/specials/SpecialUnusedimages.php +++ b/includes/specials/SpecialUnusedimages.php @@ -44,7 +44,6 @@ class UnusedimagesPage extends ImageQueryPage { } function getQueryInfo() { - global $wgCountCategorizedImagesAsUsed; $retval = array( 'tables' => array( 'image', 'imagelinks' ), 'fields' => array( @@ -58,7 +57,7 @@ class UnusedimagesPage extends ImageQueryPage { 'join_conds' => array( 'imagelinks' => array( 'LEFT JOIN', 'il_to = img_name' ) ) ); - if ( $wgCountCategorizedImagesAsUsed ) { + if ( $this->getConfig()->get( 'CountCategorizedImagesAsUsed' ) ) { // Order is significant $retval['tables'] = array( 'image', 'page', 'categorylinks', 'imagelinks' );