Document return type.
authorSam Reed <reedy@users.mediawiki.org>
Wed, 12 Jan 2011 00:29:17 +0000 (00:29 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 12 Jan 2011 00:29:17 +0000 (00:29 +0000)
Explicit class member variable definition

includes/api/ApiQueryAllimages.php
includes/filerepo/RepoGroup.php

index 94e221b..8fa733c 100644 (file)
@@ -38,6 +38,8 @@ if ( !defined( 'MEDIAWIKI' ) ) {
  */
 class ApiQueryAllimages extends ApiQueryGeneratorBase {
 
+       private $mRepo;
+
        public function __construct( $query, $moduleName ) {
                parent::__construct( $query, $moduleName, 'ai' );
                $this->mRepo = RepoGroup::singleton()->getLocalRepo();
index 4873547..65de63b 100644 (file)
@@ -26,6 +26,7 @@ class RepoGroup {
        /**
         * Get a RepoGroup instance. At present only one instance of RepoGroup is
         * needed in a MediaWiki invocation, this may change in the future.
+        * @return RepoGroup
         */
        static function singleton() {
                if ( self::$instance ) {