Browse files

Use mw.config.get('wgServer')

  • Loading branch information...
theopolisme committed Sep 21, 2013
1 parent 83388b7 commit ece619a0f429a9acf0c696a9c80e6884dbde373f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/submissions.js
@@ -334,7 +334,7 @@ function afcHelper_prompt(type) {
// First load the list of wikiprojects and store it to afcHelper_wikiprojectindex
url: "//",
url: mw.config.get('wgServer') + "/w/index.php?title=User:Theo%27s_Little_Bot/afchwikiproject.js&action=raw&ctype=text/javascript",

This comment has been minimized.


Technical-13 Dec 26, 2013


Should work just fine outside of Wikipedia, as long as it is a relatively up-to-date version of the MediaWiki software. If it's not, then it's going to need all kinds of tweaks from an experienced JavaScript person anyways.

This comment has been minimized.


wikipedia-mabdul Jan 1, 2014


well it is useful for testing the script at test.wikipedia

dataType: "json",
success: function (data) { afcHelper_wikiprojectindex = data; },
async: false

0 comments on commit ece619a

Please sign in to comment.