From: Jan Schneider Date: Wed, 4 Nov 2009 14:55:38 +0000 (+0100) Subject: Use / as the source separator. Works fine too, since we can count. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6223295f8b69d1ae2895a6ebb4a102aa34baddc5;p=horde.git Use / as the source separator. Works fine too, since we can count. --- diff --git a/turba/lib/Api.php b/turba/lib/Api.php index 410578785..051ea5f7b 100644 --- a/turba/lib/Api.php +++ b/turba/lib/Api.php @@ -1408,7 +1408,7 @@ class Turba_Api extends Horde_Registry_Api !empty($attribute['time_object_label'])) { foreach ($GLOBALS['cfgSources'] as $srcKey => $source) { if (!empty($source['map'][$key])) { - $categories[$key . '::'. $srcKey] = sprintf(_("%s in %s"), $attribute['time_object_label'], $source['title']); + $categories[$key . '/'. $srcKey] = sprintf(_("%s in %s"), $attribute['time_object_label'], $source['title']); } } } @@ -1441,7 +1441,7 @@ class Turba_Api extends Horde_Registry_Api $objects = array(); foreach ($time_categories as $category) { - list($category, $source) = explode('::', $category); + list($category, $source) = explode('/', $category, 2); $driver = Turba_Driver::singleton($source); if (is_a($driver, 'PEAR_Error')) { return PEAR::raiseError(sprintf(_("Connection failed: %s"),