$token is a parameter, so it's set by extractRequestParams()
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 13 May 2008 10:53:12 +0000 (10:53 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 13 May 2008 10:53:12 +0000 (10:53 +0000)
includes/api/ApiQueryRevisions.php

index 4a97f6f..80cfb45 100644 (file)
@@ -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) {