Fixed ApiQueryBase::selectNamedDb() return value
authorYuri Astrakhan <yurik@wikimedia.org>
Thu, 9 Apr 2015 05:20:56 +0000 (01:20 -0400)
committerYuri Astrakhan <yurik@wikimedia.org>
Thu, 9 Apr 2015 05:23:14 +0000 (01:23 -0400)
The doc specifies that this func should return
named database connection, but it does not. Fixed.

Change-Id: Ibe62ff4275201382243c4861cc4fd15cf0316e43

includes/api/ApiQueryBase.php

index 1d4cff9..6c9d999 100644 (file)
@@ -123,6 +123,7 @@ abstract class ApiQueryBase extends ApiBase {
         */
        public function selectNamedDB( $name, $db, $groups ) {
                $this->mDb = $this->getQuery()->getNamedDB( $name, $db, $groups );
+               return $this->mDb;
        }
 
        /**