From 690accbd0868940aae1208965dde30c22547ebf8 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 1 Dec 2007 15:13:29 +0000 Subject: [PATCH] Making this actually work. I feel so stupid. --- includes/api/ApiQueryRevisions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 246b5afb1e..dc75c21fd3 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -344,6 +344,7 @@ class ApiQueryRevisions extends ApiQueryBase { $title = Title::newFromID($row->rev_page); if($this->tok_rollback) { + global $wgUser; $vals['rollbacktoken'] = $wgUser->editToken(array($title->getPrefixedText(), $row->rev_user_text)); } -- 2.20.1