From 9d827bc2761f31cfd5a71311d4e83c0431be8258 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 24 Jul 2010 19:08:23 +0000 Subject: [PATCH] Add missing global $wgUser --- includes/api/ApiQueryWatchlist.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index e6896da739..503744dcd5 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -142,6 +142,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase { // Check permissions. if ( isset( $show['patrolled'] ) || isset( $show['!patrolled'] ) ) { + global $wgUser; if ( !$wgUser->useRCPatrol() && !$wgUser->useNPPatrol() ) { $this->dieUsage( 'You need the patrol right to request the patrolled flag', 'permissiondenied' ); } -- 2.20.1