Index: trunk/extensions/Translate/specials/SpecialManageGroups.php |
— | — | @@ -212,10 +212,18 @@ |
213 | 213 | $process = false; |
214 | 214 | } |
215 | 215 | |
| 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 | + |
216 | 224 | $this->out->addHTML( |
217 | 225 | Xml::openElement( 'form', $formParams ) . |
218 | 226 | Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
219 | | - Html::hidden( 'token', $this->user->editToken() ) . |
| 227 | + Html::hidden( 'token', $token ) . |
220 | 228 | Html::hidden( 'group', $group->getId() ) . |
221 | 229 | Html::hidden( 'process', 1 ) |
222 | 230 | ); |