From a8bb05de86f9305538fb6ff741d688ae7474b931 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 9 Sep 2009 15:10:56 -0400 Subject: [PATCH] Experiment with getting either a share or resource here --- kronolith/lib/Kronolith.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); + } + } + } -- 2.11.0