From 22bab7ac08b95dd3a3a40d67d2a7514ff411129c Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 13 May 2008 10:53:12 +0000 Subject: [PATCH] $token is a parameter, so it's set by extractRequestParams() --- includes/api/ApiQueryRevisions.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 4a97f6f2bd..80cfb45d9e 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -82,11 +82,8 @@ class ApiQueryRevisions extends ApiQueryBase { $this->fld_comment = isset ($prop['comment']); $this->fld_size = isset ($prop['size']); $this->tok_rollback = false; // Prevent PHP undefined property notice - // Uh... where if $token set? if(!is_null($token)) - { $this->tok_rollback = $this->getTokenFlag($token, 'rollback'); - } $this->fld_user = isset ($prop['user']); if ( $this->tok_rollback || ( $this->fld_content && $this->expandTemplates ) || $pageCount > 0) { -- 2.20.1