VictorPorton has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/334704 )

Change subject: correcting 0.0.3
......................................................................

correcting 0.0.3

Change-Id: I09448fa2c09bb9d0f8577acf658b0e5daafac95e
---
M NamespacePopups.hooks.php
M extension.json
2 files changed, 7 insertions(+), 3 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NamespacePopups 
refs/changes/04/334704/1

diff --git a/NamespacePopups.hooks.php b/NamespacePopups.hooks.php
index 005231f..0f6a769 100644
--- a/NamespacePopups.hooks.php
+++ b/NamespacePopups.hooks.php
@@ -53,7 +53,11 @@
                if ( $title->isKnown() ) {
                        $html .= Html::rawElement( 'a', [ 'class' => 
'mw-pagepopup', 'href' => $url ], $anchor );
                } else {
-                       $html .= Html::rawElement( 'a', [ 'class' => 
'mw-pagepopup new', 'href' => $url ], $anchor );
+                       $query = [];
+                       $query['action'] = 'edit';
+                       $query['redlink'] = '1';
+                       $edit_url = $title->getLinkURL( $query );
+                        $html .= Html::rawElement( 'a', [ 'class' => 
'mw-pagepopup new', 'href' => $edit_url ], $anchor );
                }
 
                $ret = $html;
diff --git a/extension.json b/extension.json
index b628af7..7ed317f 100644
--- a/extension.json
+++ b/extension.json
@@ -1,6 +1,6 @@
 {
        "name": "NamespacePopups",
-       "version": "0.0.2",
+       "version": "0.0.3",
        "author": [
                "Victor Porton"
        ],
@@ -29,5 +29,5 @@
                "remoteExtPath": "NamespacePopups"
        },
        "config": {},
-       "manifest_version": 2
+       "manifest_version": 1
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/334704
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I09448fa2c09bb9d0f8577acf658b0e5daafac95e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/NamespacePopups
Gerrit-Branch: master
Gerrit-Owner: VictorPorton <por...@narod.ru>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to