X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUnusedimages.php;h=36ec09ec817891dfad6f6c3de8b3e8bfa3c12767;hb=f44bebc9cee03a4cd9997278418a74dd750b5906;hp=743c5878f1a9b106dd1092bf20179476d7923c66;hpb=5d403c12b538413b0403a7929cfc3438a0e3c263;p=lhc%2Fweb%2Fwiklou.git 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' );