r111357 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111356‎ | r111357 | r111358 >
Date:10:01, 13 February 2012
Author:nikerabbit
Status:ok
Tags:
Comment:
editToken is deprecated
Modified paths:
  • /trunk/extensions/Translate/specials/SpecialManageGroups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/specials/SpecialManageGroups.php
@@ -212,10 +212,18 @@
213213 $process = false;
214214 }
215215
 216+ $user = $this->user;
 217+ // BC <1.19
 218+ if ( method_exists( $user, 'getEditToken' ) ) {
 219+ $token = $user->getEditToken();
 220+ } else {
 221+ $token = $user->editToken();
 222+ }
 223+
216224 $this->out->addHTML(
217225 Xml::openElement( 'form', $formParams ) .
218226 Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) .
219 - Html::hidden( 'token', $this->user->editToken() ) .
 227+ Html::hidden( 'token', $token ) .
220228 Html::hidden( 'group', $group->getId() ) .
221229 Html::hidden( 'process', 1 )
222230 );

Sign-offs

UserFlagDate
SVGinspected10:14, 13 February 2012

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111356editToken is deprecatednikerabbit09:56, 13 February 2012

Status & tagging log