diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-06 18:49:06 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-06 18:51:41 +0200 |
commit | fe6450002d6059260c743f48b6f40378454fa1dc (patch) | |
tree | f373d737d78dcc7cc73a76c90db7fdfe5d9f1aa2 /apps/calendar/index.php | |
parent | e6759a980b3efe07c4a4c2e2769c2becc92df67d (diff) | |
download | nextcloud-server-fe6450002d6059260c743f48b6f40378454fa1dc.tar.gz nextcloud-server-fe6450002d6059260c743f48b6f40378454fa1dc.zip |
Change hardcoded urls to use linkTo function
Diffstat (limited to 'apps/calendar/index.php')
-rw-r--r-- | apps/calendar/index.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/calendar/index.php b/apps/calendar/index.php index 4b871195927..cbfe0027b7b 100644 --- a/apps/calendar/index.php +++ b/apps/calendar/index.php @@ -24,8 +24,17 @@ foreach($calendars as $calendar){ } } -$eventSources[] = array('url' => '?app=calendar&getfile=ajax/events.php?calendar_id=shared_rw', 'backgroundColor' => '#1D2D44', 'borderColor' => '#888', 'textColor' => 'white', 'editable'=>'true'); -$eventSources[] = array('url' => '?app=calendar&getfile=ajax/events.php?calendar_id=shared_r', 'backgroundColor' => '#1D2D44', 'borderColor' => '#888', 'textColor' => 'white', 'editable' => 'false'); +$events_baseURL = OCP\Util::linkTo('calendar', 'ajax/events.php'); +$eventSources[] = array('url' => $events_baseURL.'?calendar_id=shared_rw', + 'backgroundColor' => '#1D2D44', + 'borderColor' => '#888', + 'textColor' => 'white', + 'editable'=>'true'); +$eventSources[] = array('url' => $events_baseURL.'?calendar_id=shared_r', + 'backgroundColor' => '#1D2D44', + 'borderColor' => '#888', + 'textColor' => 'white', + 'editable' => 'false'); OCP\Util::emitHook('OC_Calendar', 'getSources', array('sources' => &$eventSources)); $categories = OC_Calendar_App::getCategoryOptions(); |