Index: trunk/extensions/Translate/specials/SpecialManageGroups.php |
— | — | @@ -164,10 +164,18 @@ |
165 | 165 | 'action' => $this->getTitle()->getLocalURL() . '#mw-group-' . $group->getId(), |
166 | 166 | ); |
167 | 167 | |
| 168 | + $user = $this->user; |
| 169 | + // BC <1.19 |
| 170 | + if ( method_exists( $user, 'getEditToken' ) ) { |
| 171 | + $token = $user->getEditToken(); |
| 172 | + } else { |
| 173 | + $token = $user->editToken(); |
| 174 | + } |
| 175 | + |
168 | 176 | $html = |
169 | 177 | Xml::openElement( 'form', $formParams ) . |
170 | 178 | Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
171 | | - Html::hidden( 'token', $this->user->editToken() ) . |
| 179 | + Html::hidden( 'token', $token ) . |
172 | 180 | Html::hidden( 'group', $group->getId() ) . |
173 | 181 | Html::hidden( 'codes', implode( ',', $codes ) ) . |
174 | 182 | Html::hidden( 'rebuildall', 1 ) . |