Cscott has uploaded a new change for review.

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


Change subject: Update field name to match the current filerepoinfo patch.
......................................................................

Update field name to match the current filerepoinfo patch.

Change-Id: I562ebfd4a79f8fcbf37702040808eaa0949c18ad
---
M bin/mw-bundler
1 file changed, 6 insertions(+), 6 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection/OfflineContentGenerator/bundler
 refs/changes/69/96569/1

diff --git a/bin/mw-bundler b/bin/mw-bundler
index 60580d1..c972bef 100755
--- a/bin/mw-bundler
+++ b/bin/mw-bundler
@@ -91,7 +91,7 @@
                        displayname: 'Wikimedia Commons',
                        rootUrl: "//upload.wikimedia.org/wikipedia/commons",
                        local: true,
-                       apiUrl: 'http://commons.wikimedia.org/w/api.php',
+                       scriptDirUrl: 'http://commons.wikimedia.org/w/api.php',
                        wiki: 0 // pointer to an entry in metabook.wikis
                }]
                */
@@ -176,13 +176,13 @@
                                        repo.wiki = wiki;
                                        return;
                                }
-                               // xxx note that apiUrl isn't (yet) part of the
-                               // filerepoinfo response.
-                               if (!repo.apiUrl) {
-                                       repo.apiUrl = COMMONSWIKI.baseurl;
+                               // xxx note that scriptDirUrl isn't (yet) part 
of the
+                               // filerepoinfo response. (gerrit xxx)
+                               if (!repo.scriptDirUrl) {
+                                       repo.scriptDirUrl = COMMONSWIKI.baseurl;
                                }
                                for (var i=0; i<metabook.wikis.length; i++) {
-                                       if (metabook.wikis[i].baseurl === 
repo.apiUrl) {
+                                       if (metabook.wikis[i].baseurl === 
repo.scriptDirUrl) {
                                                repo.wiki = i;
                                                return;
                                        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I562ebfd4a79f8fcbf37702040808eaa0949c18ad
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Collection/OfflineContentGenerator/bundler
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>

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

Reply via email to