From c0a546c072d35551b417b0f8398fc9cc9228908b Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 6 Aug 2014 16:23:27 +0100 Subject: [PATCH] SpecialUnusedimages: Use Config instead of globals Change-Id: Iee9398ec8bc223b4833aa4055c32577cfc3227e1 --- includes/specials/SpecialUnusedimages.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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' ); -- 2.20.1