diff options
author | Georg Ehrke <ownclouddev@georgswebsite.de> | 2012-01-14 14:22:30 +0100 |
---|---|---|
committer | Georg Ehrke <ownclouddev@georgswebsite.de> | 2012-01-14 14:22:30 +0100 |
commit | 868cf4629051c557312b63acbb3e6facd8f0f86e (patch) | |
tree | f8bc9b372a37faaceeead53ea7877804eb215502 /apps/calendar/ajax | |
parent | f9c4975a456940bb24cacd6723a37f2857fbc65c (diff) | |
download | nextcloud-server-868cf4629051c557312b63acbb3e6facd8f0f86e.tar.gz nextcloud-server-868cf4629051c557312b63acbb3e6facd8f0f86e.zip |
improve import function
Diffstat (limited to 'apps/calendar/ajax')
-rw-r--r-- | apps/calendar/ajax/importdialog.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/apps/calendar/ajax/importdialog.php b/apps/calendar/ajax/importdialog.php index 983a3d95a84..f6b8453fc22 100644 --- a/apps/calendar/ajax/importdialog.php +++ b/apps/calendar/ajax/importdialog.php @@ -1,20 +1,17 @@ <?php /** - * Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de> + * Copyright (c) 2012 Georg Ehrke <ownclouddev at georgswebsite dot de> * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ require_once('../../../lib/base.php'); - +OC_JSON::checkLoggedIn(); +OC_Util::checkAppEnabled('calendar'); $l10n = new OC_L10N('calendar'); - -if(!OC_USER::isLoggedIn()) { - die('<script type="text/javascript">document.location = oc_webroot;</script>'); -} -OC_JSON::checkAppEnabled('calendar'); - $tmpl = new OC_Template('calendar', 'part.import'); +$tmpl->assign('path', $_POST['path']); +$tmpl->assign('filename', $_POST['filename']); $tmpl->printpage(); ?> |