diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
commit | 370e83bb0dfd0c70de268c93bf07ad5ee0897192 (patch) | |
tree | 491674f4c242e4d6ba0d04eafa305174c35a3391 /includes/api/ApiQueryUserInfo.php | |
parent | f4debf0f12d0524d2b2427c55ea3f16b680fad97 (diff) |
Update auf 1.13.0
Diffstat (limited to 'includes/api/ApiQueryUserInfo.php')
-rw-r--r-- | includes/api/ApiQueryUserInfo.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index 010d9f4f..2d55a352 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -30,8 +30,8 @@ if (!defined('MEDIAWIKI')) { /** * Query module to get information about the currently logged-in user - * - * @addtogroup API + * + * @ingroup API */ class ApiQueryUserInfo extends ApiQueryBase { @@ -52,7 +52,7 @@ class ApiQueryUserInfo extends ApiQueryBase { $r = $this->getCurrentUserInfo(); $result->addValue("query", $this->getModuleName(), $r); } - + protected function getCurrentUserInfo() { global $wgUser; $result = $this->getResult(); @@ -67,7 +67,7 @@ class ApiQueryUserInfo extends ApiQueryBase { $vals['blockedby'] = User::whoIs($wgUser->blockedBy()); $vals['blockreason'] = $wgUser->blockedFor(); } - } + } if (isset($this->prop['hasmsg']) && $wgUser->getNewtalk()) { $vals['messages'] = ''; } @@ -90,13 +90,13 @@ class ApiQueryUserInfo extends ApiQueryBase { } return $vals; } - + protected function getRateLimits() { global $wgUser, $wgRateLimits; if(!$wgUser->isPingLimitable()) return array(); // No limits - + // Find out which categories we belong to $categories = array(); if($wgUser->isAnon()) @@ -110,7 +110,7 @@ class ApiQueryUserInfo extends ApiQueryBase { if(!$wgUser->isAnon()) $categories[] = 'newbie'; } - + // Now get the actual limits $retval = array(); foreach($wgRateLimits as $action => $limits) @@ -121,7 +121,7 @@ class ApiQueryUserInfo extends ApiQueryBase { $retval[$action][$cat]['seconds'] = $limits[$cat][1]; } return $retval; - } + } public function getAllowedParams() { return array ( @@ -168,6 +168,6 @@ class ApiQueryUserInfo extends ApiQueryBase { } public function getVersion() { - return __CLASS__ . ': $Id: ApiQueryUserInfo.php 30395 2008-02-01 14:46:46Z catrope $'; + return __CLASS__ . ': $Id: ApiQueryUserInfo.php 35186 2008-05-22 16:39:43Z brion $'; } } |