From 64f884d74f9d5460ba30e5199e42f11912be1f92 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 16 Feb 2010 01:29:58 +0000 Subject: [PATCH] Decomment parts accidentally commited commented in r62557 --- includes/api/ApiMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 712037fd6c..fa87e57ce2 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -422,8 +422,8 @@ class ApiMain extends ApiBase { $this->dieUsageMsg( array( 'missingparam', 'token' ) ); } else { global $wgUser; - if ( ( $salt != null /*&& !$wgUser->matchEditToken( $moduleParams['token'], $salt )*/ ) - /*|| !$wgUser->matchEditToken( $moduleParams['token'] )*/ ) { + if ( ( $salt != null && !$wgUser->matchEditToken( $moduleParams['token'], $salt ) ) + || !$wgUser->matchEditToken( $moduleParams['token'] ) ) { $this->dieUsageMsg( array( 'sessionfailure' ) ); } } -- 2.20.1