}
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" .
"<thead><tr>
<th>" .
</tr></thead>"
);
- 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