Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage.php |
— | — | @@ -110,8 +110,9 @@ |
111 | 111 | if( $this->unapprovedTags < count($wgFlaggedRevTags) ) |
112 | 112 | $valid = false; |
113 | 113 | } |
114 | | - if( !$wgUser->matchEditToken( $wgRequest->getVal('wpEditToken') ) ) |
| 114 | + if( !$wgUser->matchEditToken( $wgRequest->getVal('wpEditToken') ) ) { |
115 | 115 | $valid = false; |
| 116 | + } |
116 | 117 | |
117 | 118 | if( $valid && $wgRequest->wasPosted() ) { |
118 | 119 | $this->submit(); |
— | — | @@ -308,7 +309,7 @@ |
309 | 310 | $form .= Xml::hidden( 'wpApprove', $this->approve ) . "\n"; |
310 | 311 | $form .= Xml::hidden( 'rcid', $this->rcid ) . "\n"; |
311 | 312 | # Special token to discourage fiddling... |
312 | | - $checkCode = self::getValidationKey( $this->templateParams, $this->imageParams, $this->fileVersion, $rev->getId() ); |
| 313 | + $checkCode = self::validationKey( $this->templateParams, $this->imageParams, $this->fileVersion, $rev->getId() ); |
313 | 314 | $form .= Xml::hidden( 'validatedParams', $checkCode ); |
314 | 315 | $form .= '</fieldset>'; |
315 | 316 | |