jenkins-bot has submitted this change and it was merged.
Change subject: Make sure the title doesn't exist in
SkinTemplateNavigationUniversal hook
......................................................................
Make sure the title doesn't exist in SkinTemplateNavigationUniversal hook
Change-Id: I0f7b6acdd72b4488af8b631a4ba42d9f43e27650
---
M GlobalUserPage.hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jack Phoenix: Looks good to me, approved
jenkins-bot: Verified
diff --git a/GlobalUserPage.hooks.php b/GlobalUserPage.hooks.php
index 6b09ea5..61b755f 100644
--- a/GlobalUserPage.hooks.php
+++ b/GlobalUserPage.hooks.php
@@ -89,7 +89,7 @@
public static function onSkinTemplateNavigationUniversal( &$sktemplate,
&$links ) {
$title = $sktemplate->getTitle();
- if ( GlobalUserPage::displayGlobalPage( $title ) ) {
+ if ( !$title->exists() && GlobalUserPage::displayGlobalPage(
$title ) ) {
// Removes ?action=edit&redlink=1
$links['namespaces']['user']['href'] =
$title->getFullURL();
// "selected new" --> "selected"
--
To view, visit https://gerrit.wikimedia.org/r/171974
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0f7b6acdd72b4488af8b631a4ba42d9f43e27650
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GlobalUserPage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits