From: Roan Kattouw Date: Tue, 13 May 2008 10:53:12 +0000 (+0000) Subject: $token is a parameter, so it's set by extractRequestParams() X-Git-Tag: 1.31.0-rc.0~47671 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=22bab7ac08b95dd3a3a40d67d2a7514ff411129c;p=lhc%2Fweb%2Fwiklou.git $token is a parameter, so it's set by extractRequestParams() --- 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) {