Index: trunk/extensions/PageTriage/modules/ext.pageTriage.models/ext.pageTriage.article.js |
— | — | @@ -13,9 +13,7 @@ |
14 | 14 | // object created therein. |
15 | 15 | mw.pageTriage.ArticleList = Backbone.Collection.extend( { |
16 | 16 | model: mw.pageTriage.Article, |
17 | | - url: mw.config.get('wgServer') + |
18 | | - mw.config.get('wgScriptPath') + |
19 | | - '/api.php?action=pagetriagelist&format=json', |
| 17 | + url: mw.util.wikiScript( 'api' ) + '?action=pagetriagelist&format=json', |
20 | 18 | |
21 | 19 | parse: function( response ) { |
22 | 20 | // extract the useful bits of json. |