From: Sam Reed Date: Sat, 24 Jul 2010 19:08:23 +0000 (+0000) Subject: Add missing global $wgUser X-Git-Tag: 1.31.0-rc.0~35974 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=9d827bc2761f31cfd5a71311d4e83c0431be8258;p=lhc%2Fweb%2Fwiklou.git Add missing global $wgUser --- 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' ); }