Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/171974

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GlobalUserPage 
refs/changes/74/171974/1

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: newchange
Gerrit-Change-Id: I0f7b6acdd72b4488af8b631a4ba42d9f43e27650
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GlobalUserPage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to