From 6edf0e0ccf30e1b8af37d2634ce8b094361a40c6 Mon Sep 17 00:00:00 2001
From: Iain Emsley <iain.emsley@ja.net>
Date: Mon, 26 Nov 2012 21:05:22 +0000
Subject: [PATCH] 1 - Allow client to load other parts of Zend

---
 Droogle/appsapis.inc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Droogle/appsapis.inc b/Droogle/appsapis.inc
index 4bd73c5..f735fa5 100644
--- a/Droogle/appsapis.inc
+++ b/Droogle/appsapis.inc
@@ -50,8 +50,10 @@ Zend_Loader::loadClass('Zend_Gdata_Gapps', dirname(__FILE__));
  * @return object
  *   Zend_Http_Client returns a client object.
  */
-function droogle_get_client_login_http_client($user, $pass) {
-  $service = Zend_Gdata_Docs::AUTH_SERVICE_NAME;
+function droogle_get_client_login_http_client($user, $pass, $service=null) {
+  if (!$service) {
+    $service = Zend_Gdata_Docs::AUTH_SERVICE_NAME;
+  }
   $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service);
   return $client;
 }
-- 
1.8.0

