r114495 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114494‎ | r114495 | r114496 >
Date:21:16, 26 March 2012
Author:raindrift
Status:resolved
Tags:
Comment:
correctly look up the api path
Modified paths:
  • /trunk/extensions/PageTriage/modules/ext.pageTriage.models/ext.pageTriage.article.js (modified) (history)

Diff [purge]

Index: trunk/extensions/PageTriage/modules/ext.pageTriage.models/ext.pageTriage.article.js
@@ -13,7 +13,9 @@
1414 // object created therein.
1515 mw.pageTriage.ArticleList = Backbone.Collection.extend( {
1616 model: mw.pageTriage.Article,
17 - url: '/w/api.php?action=pagetriagelist&format=json',
 17+ url: mw.config.get('wgServer') +
 18+ mw.config.get('wgScriptPath') +
 19+ 'api.php?action=pagetriagelist&format=json',
1820
1921 parse: function( response ) {
2022 // extract the useful bits of json.

Follow-up revisions

RevisionCommit summaryAuthorDate
r114496really correct api path this time.raindrift21:18, 26 March 2012

Status & tagging log