X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialTrackingCategories.php;h=552031f1c84007faad6bf4b6a83130136ecc15e0;hb=f311f96e98b133849b505a07b0a674fdbe67025d;hp=73bdbd6ac6642f2b40d05b629a29c34581b1ec3a;hpb=70b2767512832b304c9db24cc2203961b6512c70;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialTrackingCategories.php b/includes/specials/SpecialTrackingCategories.php index 73bdbd6ac6..552031f1c8 100644 --- a/includes/specials/SpecialTrackingCategories.php +++ b/includes/specials/SpecialTrackingCategories.php @@ -37,14 +37,11 @@ class SpecialTrackingCategories extends SpecialPage { } function execute( $par ) { - // Global array containing names of tracking categories - global $wgTrackingCategories; - $this->setHeaders(); $this->outputHeader(); $this->getOutput()->allowClickjacking(); $this->getOutput()->addHTML( - Html::openElement( 'table', array( 'class' => 'mw-datatable TablePager', + Html::openElement( 'table', array( 'class' => 'mw-datatable', 'id' => 'mw-trackingcategories-table' ) ) . "\n" . " " . @@ -59,7 +56,7 @@ class SpecialTrackingCategories extends SpecialPage { " ); - foreach ( $wgTrackingCategories as $catMsg ) { + foreach ( $this->getConfig()->get( 'TrackingCategories' ) as $catMsg ) { /* * Check if the tracking category varies by namespace * Otherwise only pages in the current namespace will be displayed