diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-12-27 22:18:01 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-12-27 22:18:01 +0100 |
commit | 3e2e5196d2b9a0d1e2d2c0e7d2e8ae0452685de0 (patch) | |
tree | 41d227de4b2d96d3a1ca346c250a1270946f1842 /apps/calendar/export.php | |
parent | 5fd595c0bfcd3fb8857f62aa9efb28a2669a0301 (diff) | |
parent | f3e8776dc63656d99c39c007c230a80c0c9e384b (diff) | |
download | nextcloud-server-3e2e5196d2b9a0d1e2d2c0e7d2e8ae0452685de0.tar.gz nextcloud-server-3e2e5196d2b9a0d1e2d2c0e7d2e8ae0452685de0.zip |
Merge branch 'tanghus_remote_backup' of git://gitorious.org/~tanghus/owncloud/tanghus-owncloud
Conflicts:
apps/calendar/export.php
apps/contacts/index.php
Diffstat (limited to 'apps/calendar/export.php')
-rw-r--r-- | apps/calendar/export.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/calendar/export.php b/apps/calendar/export.php index 9b3ea5005d6..ce1a4aa046f 100644 --- a/apps/calendar/export.php +++ b/apps/calendar/export.php @@ -6,25 +6,25 @@ * See the COPYING-README file. */ -require_once ("../../lib/base.php"); +require_once ('../../lib/base.php'); OC_Util::checkLoggedIn(); OC_Util::checkAppEnabled('calendar'); -$cal = isset($_GET["calid"]) ? $_GET["calid"] : NULL; -$event = isset($_GET["eventid"]) ? $_GET["eventid"] : NULL; +$cal = isset($_GET['calid']) ? $_GET['calid'] : NULL; +$event = isset($_GET['eventid']) ? $_GET['eventid'] : NULL; if(isset($cal)){ $calendar = OC_Calendar_App::getCalendar($cal); $calobjects = OC_Calendar_Object::all($cal); - header("Content-Type: text/Calendar"); - header("Content-Disposition: inline; filename=calendar.ics"); + header('Content-Type: text/Calendar'); + header('Content-Disposition: inline; filename=' . $calendar['displayname'] . '.ics'); foreach($calobjects as $calobject){ - echo $calobject["calendardata"] . "\n"; + echo $calobject['calendardata'] . '\n'; } }elseif(isset($event)){ - $data = OC_Calendar_App::getEventObject($_GET["eventid"]); - $calendarid = $data["calendarid"]; + $data = OC_Calendar_App::getEventObject($_GET['eventid']); + $calendarid = $data['calendarid']; $calendar = OC_Calendar_App::getCalendar($calendarid); - header("Content-Type: text/Calendar"); - header("Content-Disposition: inline; filename=" . $data["summary"] . ".ics"); - echo $data["calendardata"]; + header('Content-Type: text/Calendar'); + header('Content-Disposition: inline; filename=' . $data['summary'] . '.ics'); + echo $data['calendardata']; } ?> |