r37677 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37676‎ | r37677 | r37678 >
Date:02:31, 15 July 2008
Author:aaron
Status:old
Tags:
Comment:
Function was renamed (bug 14820)
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevsPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage.php
@@ -110,8 +110,9 @@
111111 if( $this->unapprovedTags < count($wgFlaggedRevTags) )
112112 $valid = false;
113113 }
114 - if( !$wgUser->matchEditToken( $wgRequest->getVal('wpEditToken') ) )
 114+ if( !$wgUser->matchEditToken( $wgRequest->getVal('wpEditToken') ) ) {
115115 $valid = false;
 116+ }
116117
117118 if( $valid && $wgRequest->wasPosted() ) {
118119 $this->submit();
@@ -308,7 +309,7 @@
309310 $form .= Xml::hidden( 'wpApprove', $this->approve ) . "\n";
310311 $form .= Xml::hidden( 'rcid', $this->rcid ) . "\n";
311312 # 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() );
313314 $form .= Xml::hidden( 'validatedParams', $checkCode );
314315 $form .= '</fieldset>';
315316

Status & tagging log