Index: branches/wmf/1.16wmf4/includes/api/ApiWatch.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | public function execute() { |
44 | 44 | global $wgUser; |
45 | 45 | $this->getMain()->setCachePrivate(); |
46 | | - if ( !$wgUser->isLoggedIn() ) { |
| 46 | + if ( !$wgUser->isLoggedIn() ) |
47 | 47 | $this->dieUsage( 'You must be logged-in to have a watchlist', 'notloggedin' ); |
48 | 48 | |
49 | 49 | $params = $this->extractRequestParams(); |
Index: branches/wmf/1.16wmf4/includes/api/ApiQueryBlocks.php |
— | — | @@ -124,7 +124,7 @@ |
125 | 125 | |
126 | 126 | // Make sure private data (deleted blocks) isn't cached |
127 | 127 | $this->getMain()->setVaryCookie(); |
128 | | - if ( !$wgUser->isAllowed( 'hideuser' ) ) { |
| 128 | + if ( !$wgUser->isAllowed( 'hideuser' ) ) |
129 | 129 | $this->addWhereFld( 'ipb_deleted', 0 ); |
130 | 130 | |
131 | 131 | // Purge expired entries on one in every 10 queries |
— | — | @@ -283,4 +283,4 @@ |
284 | 284 | public function getVersion() { |
285 | 285 | return __CLASS__ . ': $Id$'; |
286 | 286 | } |
287 | | -} |
\ No newline at end of file |
| 287 | +} |
Index: branches/wmf/1.16wmf4/includes/api/ApiQueryWatchlist.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | |
98 | 98 | if ( $this->fld_patrol ) { |
99 | 99 | $this->getMain()->setVaryCookie(); |
100 | | - if ( !$user->useRCPatrol() && !$user->useNPPatrol() ) { |
| 100 | + if ( !$user->useRCPatrol() && !$user->useNPPatrol() ) |
101 | 101 | $this->dieUsage( 'patrol property is not available', 'patrol' ); |
102 | 102 | } |
103 | 103 | } |
Index: branches/wmf/1.16wmf4/includes/api/ApiQueryUserContributions.php |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | |
168 | 168 | // Make sure private data (deleted revisions) isn't cached |
169 | 169 | $this->getMain()->setVaryCookie(); |
170 | | - if ( !$wgUser->isAllowed( 'hideuser' ) ) { |
| 170 | + if ( !$wgUser->isAllowed( 'hideuser' ) ) |
171 | 171 | $this->addWhere( $this->getDB()->bitAnd( 'rev_deleted', Revision::DELETED_USER ) . ' = 0' ); |
172 | 172 | // We only want pages by the specified users. |
173 | 173 | if ( $this->prefixMode ) |