r106101 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106100‎ | r106101 | r106102 >
Date:21:33, 13 December 2011
Author:hashar
Status:reverted (Comments)
Tags:
Comment:
replace deprecated User->editToken()

Deprecated in 1.19. Need to use getEditToken() instead.
Modified paths:
  • /trunk/extensions/MoodBar/MoodBar.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/MoodBar.hooks.php
@@ -67,7 +67,7 @@
6868
6969 public static function makeGlobalVariablesScript( &$vars ) {
7070 global $wgUser;
71 - $vars['mbEditToken'] = $wgUser->editToken();
 71+ $vars['mbEditToken'] = $wgUser->getEditToken();
7272 return true;
7373 }
7474

Follow-up revisions

RevisionCommit summaryAuthorDate
r106265Revert r106101: this extension runs on the cluster, so we want to keep it com...catrope22:26, 14 December 2011

Comments

#Comment by Nikerabbit (talk | contribs)   07:28, 14 December 2011

Have to be careful not break this in 1.18wmf1 branch.

#Comment by Catrope (talk | contribs)   21:51, 14 December 2011

Yeah, this needs to be reverted in 1.18wmf1 for deployment.

#Comment by Hashar (talk | contribs)   09:02, 15 December 2011

Oops missed that one. Well done Nikerabbit.

Status & tagging log