From: Michael J. Rubinsky Date: Wed, 9 Sep 2009 19:10:56 +0000 (-0400) Subject: Experiment with getting either a share or resource here X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a8bb05de86f9305538fb6ff741d688ae7474b931;p=horde.git Experiment with getting either a share or resource here --- diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 5de3a6894..c744f114d 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -2064,4 +2064,16 @@ class Kronolith } } + + static public function getInternalCalendar($target) + { + if (self::isResourceCalendar($taget)) { + $driver = self::getDriver('Resource'); + $id = $driver->getResourceIdByCalendar($id); + return $driver->getResoruce($id); + } else { + return $GLOBALS['kronolith_shares']->getShare($target); + } + } + }