Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-05 12:18:45 +0400
committerFrank Karlitschek <frank@owncloud.org>2012-05-05 12:18:45 +0400
commit9bcc5c11a8785a567ded6c0e4ab3a40966785606 (patch)
treecb50df0695f11fb8132a35e214caa8cd211bb9a2 /apps/calendar
parent4a89eb77c1732a49075d4f3f6a46ddaad10eef70 (diff)
porting the hooks and starting with the templates
Diffstat (limited to 'apps/calendar')
-rwxr-xr-xapps/calendar/appinfo/app.php2
-rwxr-xr-xapps/calendar/index.php2
-rwxr-xr-xapps/calendar/lib/app.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/calendar/appinfo/app.php b/apps/calendar/appinfo/app.php
index 7b5db834fb5..b02fc602c6b 100755
--- a/apps/calendar/appinfo/app.php
+++ b/apps/calendar/appinfo/app.php
@@ -7,7 +7,7 @@ OC::$CLASSPATH['OC_Calendar_Hooks'] = 'apps/calendar/lib/hooks.php';
OC::$CLASSPATH['OC_Connector_Sabre_CalDAV'] = 'apps/calendar/lib/connector_sabre.php';
OC::$CLASSPATH['OC_Calendar_Share'] = 'apps/calendar/lib/share.php';
OC::$CLASSPATH['OC_Search_Provider_Calendar'] = 'apps/calendar/lib/search.php';
-OC_HOOK::connect('OC_User', 'post_deleteUser', 'OC_Calendar_Hooks', 'deleteUser');
+OCP\Util::connectHook('OC_User', 'post_deleteUser', 'OC_Calendar_Hooks', 'deleteUser');
OCP\Util::addscript('calendar','loader');
OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min");
OCP\Util::addStyle("3rdparty", "chosen/chosen");
diff --git a/apps/calendar/index.php b/apps/calendar/index.php
index 3a3915b9669..5aee5f6ace8 100755
--- a/apps/calendar/index.php
+++ b/apps/calendar/index.php
@@ -25,7 +25,7 @@ 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');
-OC_Hook::emit('OC_Calendar', 'getSources', array('sources' => &$eventSources));
+OCP\Util::emitHook('OC_Calendar', 'getSources', array('sources' => &$eventSources));
$categories = OC_Calendar_App::getCategoryOptions();
//Fix currentview for fullcalendar
diff --git a/apps/calendar/lib/app.php b/apps/calendar/lib/app.php
index f955c59603d..eb440b5794b 100755
--- a/apps/calendar/lib/app.php
+++ b/apps/calendar/lib/app.php
@@ -338,7 +338,7 @@ class OC_Calendar_App{
OCP\Response::setETagHeader($calendar['ctag']);
$events = OC_Calendar_Object::allInPeriod($calendar_id, $start, $end);
} else {
- OC_Hook::emit('OC_Calendar', 'getEvents', array('calendar_id' => $calendar_id, 'events' => &$events));
+ OCP\Util::emitHook('OC_Calendar', 'getEvents', array('calendar_id' => $calendar_id, 'events' => &$events));
}
}
return $events;