X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialTrackingCategories.php;h=1afbb5e0da80ddad73efa7f4654831fc8e44472e;hb=9ded67d0da1e75fa3a23e915b498ddf7fd3a348b;hp=3ee7cea1ca0a78d3dccaf85c588540f22394deba;hpb=967a96e7fa5910f8fc451590decb381dbfb481ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialTrackingCategories.php b/includes/specials/SpecialTrackingCategories.php index 3ee7cea1ca..1afbb5e0da 100644 --- a/includes/specials/SpecialTrackingCategories.php +++ b/includes/specials/SpecialTrackingCategories.php @@ -40,6 +40,8 @@ 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 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(); }