fix path and class name

This commit is contained in:
Georg Ehrke 2012-04-07 22:45:44 -04:00
parent 5a4237a31d
commit 960553f9c4
2 changed files with 3 additions and 3 deletions

View file

@ -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');

View file

@ -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';