Explicit variable definition, tweak documentation
authorSam Reed <reedy@users.mediawiki.org>
Tue, 23 Nov 2010 21:43:56 +0000 (21:43 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 23 Nov 2010 21:43:56 +0000 (21:43 +0000)
includes/api/ApiQueryUsers.php

index 219d86a..69bd9fd 100644 (file)
@@ -36,7 +36,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
  */
  class ApiQueryUsers extends ApiQueryBase {
 
-       private $tokenFunctions;
+       private $tokenFunctions, $prop;
 
        public function __construct( $query, $moduleName ) {
                parent::__construct( $query, $moduleName, 'us' );
@@ -46,7 +46,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
         * Get an array mapping token names to their handler functions.
         * The prototype for a token function is func($user)
         * it should return a token or false (permission denied)
-        * @return array(tokenname => function)
+        * @return Array tokenname => function
         */
        protected function getTokenFunctions() {
                // Don't call the hooks twice