port checkAppEnabled

master
Frank Karlitschek 2012-05-02 19:08:37 +02:00
parent 1b100fa9e9
commit ca34a9842c
5 changed files with 5 additions and 5 deletions

2
ajax/import/dialog.php Normal file → Executable file
View File

@ -8,7 +8,7 @@
OC_JSON::checkLoggedIn();
OC_Util::checkAppEnabled('calendar');
OCP\App::checkAppEnabled('calendar');
$tmpl = new OC_Template('calendar', 'part.import');
$tmpl->assign('path', $_POST['path']);
$tmpl->assign('filename', $_POST['filename']);

View File

@ -8,7 +8,7 @@
//check for calendar rights or create new one
ob_start();
OC_JSON::checkLoggedIn();
OC_Util::checkAppEnabled('calendar');
OCP\App::checkAppEnabled('calendar');
$nl="\r\n";
$comps = array('VEVENT'=>true, 'VTODO'=>true, 'VJOURNAL'=>true);
$progressfile = 'import_tmp/' . md5(session_id()) . '.txt';

2
appinfo/remote.php Normal file → Executable file
View File

@ -9,7 +9,7 @@
$RUNTIME_NOSETUPFS = true;
require_once('../lib/base.php');
OC_Util::checkAppEnabled('calendar');
OCP\App::checkAppEnabled('calendar');
// Backends
$authBackend = new OC_Connector_Sabre_Auth();

View File

@ -8,7 +8,7 @@
OCP\User::checkLoggedIn();
OC_Util::checkAppEnabled('calendar');
OCP\App::checkAppEnabled('calendar');
$cal = isset($_GET['calid']) ? $_GET['calid'] : NULL;
$event = isset($_GET['eventid']) ? $_GET['eventid'] : NULL;
$nl = "\r\n";

View File

@ -8,7 +8,7 @@
OCP\User::checkLoggedIn();
OC_Util::checkAppEnabled('calendar');
OCP\App::checkAppEnabled('calendar');
// Create default calendar ...
$calendars = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser(), 1);