r51602 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51601‎ | r51602 | r51603 >
Date:18:14, 8 June 2009
Author:jan
Status:deferred
Tags:
Comment:
Fixes for r51600: Use instead of isset($wgRequest->getVal('controll_delete')) $wgRequest->getCheck('controll_delete')
Modified paths:
  • /trunk/extensions/Poll/Poll_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Poll/Poll_body.php
@@ -436,7 +436,7 @@
437437 }
438438
439439 if ( ( ( $creater == $user ) OR ( $controll_delete_right == true ) ) AND ( $controll_delete_blocked != true ) ) {
440 - if( isset($wgRequest->getVal('controll_delete')) AND $wgRequest->getVal('controll_delete') === 1 ) {
 440+ if( $wgRequest->getCheck('controll_delete') AND $wgRequest->getVal('controll_delete') === 1 ) {
441441 $dbw = wfGetDB( DB_MASTER );
442442 $user = $wgUser->getName();
443443

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r51600Fixes for r51338:...jan17:58, 8 June 2009

Status & tagging log