r114496 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114495‎ | r114496 | r114497 >
Date:21:18, 26 March 2012
Author:raindrift
Status:ok (Comments)
Tags:
Comment:
really correct api path this time.
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
@@ -15,12 +15,12 @@
1616 model: mw.pageTriage.Article,
1717 url: mw.config.get('wgServer') +
1818 mw.config.get('wgScriptPath') +
19 - 'api.php?action=pagetriagelist&format=json',
 19+ '/api.php?action=pagetriagelist&format=json',
2020
2121 parse: function( response ) {
2222 // extract the useful bits of json.
2323 return response.pagetriagelist.pages;
2424 }
25 -
2625 } );
 26+
2727 } );

Follow-up revisions

RevisionCommit summaryAuthorDate
r114534simpler API path...raindrift18:05, 27 March 2012

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r114495correctly look up the api pathraindrift21:16, 26 March 2012

Comments

#Comment by Nikerabbit (talk | contribs)   06:42, 27 March 2012

in mediawiki.util there is shorcut for this: mw.util.wikiScript( 'api' )

Status & tagging log