r37300 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37299‎ | r37300 | r37301 >
Date:08:42, 8 July 2008
Author:btongminh
Status:old
Tags:
Comment:
User::editToken expects the salt as an array, not as variable length argument list.
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryRevisions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryRevisions.php
@@ -69,8 +69,8 @@
7070 global $wgUser;
7171 if(!$wgUser->isAllowed('rollback'))
7272 return false;
73 - return $wgUser->editToken($title->getPrefixedText(),
74 - $rev->getUserText());
 73+ return $wgUser->editToken(array($title->getPrefixedText(),
 74+ $rev->getUserText()));
7575 }
7676
7777 public function execute() {

Status & tagging log