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
Use packageFiles feature to replace special-purpose RL modules
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialListgrants.php
diff --git
a/includes/specials/SpecialListgrants.php
b/includes/specials/SpecialListgrants.php
index
2c92410
..
ba16baf
100644
(file)
--- a/
includes/specials/SpecialListgrants.php
+++ b/
includes/specials/SpecialListgrants.php
@@
-62,14
+62,14
@@
class SpecialListGrants extends SpecialPage {
'<span class="mw-listgrants-right-name">' . $permission . '</span>'
)->parse();
}
'<span class="mw-listgrants-right-name">' . $permission . '</span>'
)->parse();
}
- if (
!count( $descs )
) {
+ if (
$descs === []
) {
$grantCellHtml = '';
} else {
sort( $descs );
$grantCellHtml = '<ul><li>' . implode( "</li>\n<li>", $descs ) . '</li></ul>';
}
$grantCellHtml = '';
} else {
sort( $descs );
$grantCellHtml = '<ul><li>' . implode( "</li>\n<li>", $descs ) . '</li></ul>';
}
- $id =
\Sanitizer::escapeId
( $grant );
+ $id =
Sanitizer::escapeIdForAttribute
( $grant );
$out->addHTML( \Html::rawElement( 'tr', [ 'id' => $id ],
"<td>" .
$this->msg(
$out->addHTML( \Html::rawElement( 'tr', [ 'id' => $id ],
"<td>" .
$this->msg(