..and remove debug code
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 8 Jun 2009 13:43:16 +0000 (09:43 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 8 Jun 2009 13:43:16 +0000 (09:43 -0400)
timeobjects/lib/Driver/Weatherdotcom.php

index e13213b..e2ae2ae 100644 (file)
@@ -21,9 +21,7 @@ class TimeObjects_Driver_Weatherdotcom extends TimeObjects_Driver
     {
         if (empty($params['location'])) {
             // Try to get a good location string from Turba's "own" contact
-            $contact = $GLOBALS['registry']->contacts->ownVCard();
-            var_dump($contact);
-            die;
+            $contact = $GLOBALS['registry']->contacts->ownContact();
             $params['location'] = !empty($contact['homeCity'])
                 ? $contact['homeCity']
                     . (!empty($contact['homeProvince']) ? ', ' . $contact['homeProvince'] : '')