dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix CommentStoreComment RawMessage construction
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialTrackingCategories.php
diff --git
a/includes/specials/SpecialTrackingCategories.php
b/includes/specials/SpecialTrackingCategories.php
index
e503d92
..
1afbb5e
100644
(file)
--- 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->setHeaders();
$this->outputHeader();
$this->getOutput()->allowClickjacking();
+ $this->getOutput()->addModuleStyles( 'jquery.tablesorter.styles' );
+ $this->getOutput()->addModules( 'jquery.tablesorter' );
$this->getOutput()->addHTML(
$this->getOutput()->addHTML(
- Html::openElement( 'table', [ 'class' => 'mw-datatable',
+ Html::openElement( 'table', [ 'class' => 'mw-datatable
sortable
',
'id' => 'mw-trackingcategories-table' ] ) . "\n" .
"<thead><tr>
<th>" .
'id' => 'mw-trackingcategories-table' ] ) . "\n" .
"<thead><tr>
<th>" .
@@
-94,7
+96,7
@@
class SpecialTrackingCategories extends SpecialPage {
}
# Extra message, when no category was found
}
# Extra message, when no category was found
- if (
!count( $allMsgs )
) {
+ if (
$allMsgs === []
) {
$allMsgs[] = $this->msg( 'trackingcategories-disabled' )->parse();
}
$allMsgs[] = $this->msg( 'trackingcategories-disabled' )->parse();
}