r107547 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107546‎ | r107547 | r107548 >
Date:23:25, 28 December 2011
Author:rmoen
Status:ok
Tags:
Comment:
changed loadItem to post request and now passing page name to allow validation for load requests
Modified paths:
  • /trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js
@@ -47,11 +47,12 @@
4848 'action': 'getmarkashelpfulitem',
4949 'item': props.item,
5050 'type': props.type,
 51+ 'page': mw.config.get( 'wgPageName' ),
5152 'format': 'json'
5253 };
5354
5455 $.ajax({
55 - type: 'get',
 56+ type: 'POST',
5657 url: mw.util.wikiScript('api'),
5758 cache: false,
5859 data: request,

Status & tagging log