jenkins-bot has submitted this change and it was merged.
Change subject: (bug 29310) Fallback for custom namespace tabs with no nstab
message
......................................................................
(bug 29310) Fallback for custom namespace tabs with no nstab message
Change-Id: I16972d2b1054d23be28bd4425370b4eafc5a98a4
---
M pages/ThreadPermalinkView.php
1 file changed, 8 insertions(+), 1 deletion(-)
Approvals:
Siebrand: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pages/ThreadPermalinkView.php b/pages/ThreadPermalinkView.php
index 2c32d0c..93e7fca 100644
--- a/pages/ThreadPermalinkView.php
+++ b/pages/ThreadPermalinkView.php
@@ -117,9 +117,16 @@
$talkClasses = array();
if ( !$talkTitle->exists() ) $talkClasses[] = 'new';
+ if ( wfMessage( $articleTitle->getNamespaceKey() )->exists() ) {
+ $articleNamespaceText = wfMessage(
$articleTitle->getNamespaceKey() )->text();
+ } else {
+ global $wgExtraNamespaces;
+ $articleNamespaceText =
$wgExtraNamespaces[$articleTitle->getNamespace()];
+ }
+
$tabs['article'] =
array(
- 'text' => wfMessage(
$articleTitle->getNamespaceKey() )->text(),
+ 'text' => $articleNamespaceText,
'href' => $articleTitle->getLocalURL(),
'class' => implode( ' ', $articleClasses ),
);
--
To view, visit https://gerrit.wikimedia.org/r/49610
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I16972d2b1054d23be28bd4425370b4eafc5a98a4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits