From 6223295f8b69d1ae2895a6ebb4a102aa34baddc5 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 4 Nov 2009 15:55:38 +0100 Subject: [PATCH] Use / as the source separator. Works fine too, since we can count. --- turba/lib/Api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"), -- 2.11.0