From fe4e448e9c0e9420660fbe8138065d762557dadd Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Thu, 9 Apr 2015 01:20:56 -0400 Subject: [PATCH] Fixed ApiQueryBase::selectNamedDb() return value The doc specifies that this func should return named database connection, but it does not. Fixed. Change-Id: Ibe62ff4275201382243c4861cc4fd15cf0316e43 --- includes/api/ApiQueryBase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 1d4cff9109..6c9d999c92 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -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; } /** -- 2.20.1