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
Merge "Add CollationFa"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialTrackingCategories.php
diff --git
a/includes/specials/SpecialTrackingCategories.php
b/includes/specials/SpecialTrackingCategories.php
index
3b502f8
..
8ff0527
100644
(file)
--- a/
includes/specials/SpecialTrackingCategories.php
+++ b/
includes/specials/SpecialTrackingCategories.php
@@
-87,21
+87,29
@@
class SpecialTrackingCategories extends SpecialPage {
}
$batch->execute();
}
$batch->execute();
+ Hooks::run( 'SpecialTrackingCategories::preprocess', [ $this, $trackingCategories ] );
+
+ $linkRenderer = $this->getLinkRenderer();
+
foreach ( $trackingCategories as $catMsg => $data ) {
$allMsgs = [];
$catDesc = $catMsg . '-desc';
foreach ( $trackingCategories as $catMsg => $data ) {
$allMsgs = [];
$catDesc = $catMsg . '-desc';
- $catMsgTitleText =
Linker::l
ink(
+ $catMsgTitleText =
$linkRenderer->makeL
ink(
$data['msg'],
$data['msg'],
- htmlspecialchars( $catMsg )
+ $catMsg
);
foreach ( $data['cats'] as $catTitle ) {
);
foreach ( $data['cats'] as $catTitle ) {
- $
catTitleText = Linker::l
ink(
+ $
html = $linkRenderer->makeL
ink(
$catTitle,
$catTitle,
-
htmlspecialchars( $catTitle->getText()
)
+
$catTitle->getText(
)
);
);
- $allMsgs[] = $catTitleText;
+
+ Hooks::run( 'SpecialTrackingCategories::generateCatLink',
+ [ $this, $catTitle, &$html ] );
+
+ $allMsgs[] = $html;
}
# Extra message, when no category was found
}
# Extra message, when no category was found