X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialSpecialpages.php;h=4f29082227bf14de8fd9079492273d7a1749420b;hb=1c816f483f7757d6fd5989ef4d1d0ec0fcbc1b00;hp=b18b370c6b91ff26dc903de8ff3b323ba7383ee2;hpb=3a2853e218acb586a00f2e59638de4176aee287f;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/specials/SpecialSpecialpages.php b/includes/specials/SpecialSpecialpages.php
index b18b370c6b..4f29082227 100644
--- a/includes/specials/SpecialSpecialpages.php
+++ b/includes/specials/SpecialSpecialpages.php
@@ -96,7 +96,6 @@ class SpecialSpecialpages extends UnlistedSpecialPage {
$includesCachedPages = false;
foreach ( $groups as $group => $sortedPages ) {
-
$out->wrapWikiMsg(
"
$1
\n",
"specialpages-group-$group"
@@ -131,9 +130,29 @@ class SpecialSpecialpages extends UnlistedSpecialPage {
);
}
- if ( $includesRestrictedPages || $includesCachedPages ) {
- $out->wrapWikiMsg( "$1
", 'specialpages-note-top' );
- $out->wrapWikiMsg( "\n$1\n
", 'specialpages-note' );
+ // add legend
+ $notes = [];
+ if ( $includesRestrictedPages ) {
+ $restricedMsg = $this->msg( 'specialpages-note-restricted' );
+ if ( !$restricedMsg->isDisabled() ) {
+ $notes[] = $restricedMsg->plain();
+ }
+ }
+ if ( $includesCachedPages ) {
+ $cachedMsg = $this->msg( 'specialpages-note-cached' );
+ if ( !$cachedMsg->isDisabled() ) {
+ $notes[] = $cachedMsg->plain();
+ }
+ }
+ if ( $notes !== [] ) {
+ $out->wrapWikiMsg(
+ "$1
", 'specialpages-note-top'
+ );
+ $out->addWikiText(
+ "\n" .
+ implode( "\n", $notes ) .
+ "\n
"
+ );
}
}
}