From 960553f9c4fffe06fc6a9d80ed22fdcd2228a343 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Sat, 7 Apr 2012 22:45:44 -0400 Subject: [PATCH] fix path and class name --- apps/calendar/ajax/events.php | 2 +- apps/calendar/lib/app.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/calendar/ajax/events.php b/apps/calendar/ajax/events.php index 21e816b1275..4c011e5d764 100755 --- a/apps/calendar/ajax/events.php +++ b/apps/calendar/ajax/events.php @@ -7,7 +7,7 @@ */ require_once ('../../../lib/base.php'); -require_once(OC::$THIRDPARTYROOT . 'when/When.php'); +require_once('when/When.php'); OC_JSON::checkLoggedIn(); OC_JSON::checkAppEnabled('calendar'); diff --git a/apps/calendar/lib/app.php b/apps/calendar/lib/app.php index 40de6deb432..4ea73688505 100644 --- a/apps/calendar/lib/app.php +++ b/apps/calendar/lib/app.php @@ -8,8 +8,8 @@ * * This class manages our app actions */ -self::$l10n = new OC_L10N('calendar'); -self::$tz = OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'timezone', date_default_timezone_get()); +OC_Calendar_App::$l10n = new OC_L10N('calendar'); +OC_Calendar_App::$tz = OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'timezone', date_default_timezone_get()); class OC_Calendar_App{ const CALENDAR = 'calendar'; const EVENT = 'event'; -- 2.39.5