From: Georg Ehrke Date: Sun, 8 Apr 2012 02:45:44 +0000 (-0400) Subject: fix path and class name X-Git-Tag: v4.0.0beta~244^2~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=960553f9c4fffe06fc6a9d80ed22fdcd2228a343;p=nextcloud-server.git fix path and class name --- 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';