X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialTrackingCategories.php;h=1afbb5e0da80ddad73efa7f4654831fc8e44472e;hb=6420c79320bc099cb4ff77232beabd72040146d0;hp=e503d92b41c0f14c38eaa9c243e5211ec56d03cc;hpb=10d1b7d12b5d097413cd507740c5c71781c2580b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialTrackingCategories.php b/includes/specials/SpecialTrackingCategories.php index e503d92b41..1afbb5e0da 100644 --- a/includes/specials/SpecialTrackingCategories.php +++ b/includes/specials/SpecialTrackingCategories.php @@ -40,8 +40,10 @@ class SpecialTrackingCategories extends SpecialPage { $this->setHeaders(); $this->outputHeader(); $this->getOutput()->allowClickjacking(); + $this->getOutput()->addModuleStyles( 'jquery.tablesorter.styles' ); + $this->getOutput()->addModules( 'jquery.tablesorter' ); $this->getOutput()->addHTML( - Html::openElement( 'table', [ 'class' => 'mw-datatable', + Html::openElement( 'table', [ 'class' => 'mw-datatable sortable', 'id' => 'mw-trackingcategories-table' ] ) . "\n" . " " . @@ -94,7 +96,7 @@ class SpecialTrackingCategories extends SpecialPage { } # Extra message, when no category was found - if ( !count( $allMsgs ) ) { + if ( $allMsgs === [] ) { $allMsgs[] = $this->msg( 'trackingcategories-disabled' )->parse(); }