From d1dcd7893cb878263b8179bab16d101036c57a88 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 1 Mar 2012 22:58:44 +0100 Subject: Search: Change provider registration to class name, for lazy loading of search providers --- apps/calendar/appinfo/app.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/calendar/appinfo') diff --git a/apps/calendar/appinfo/app.php b/apps/calendar/appinfo/app.php index 9c95768895f..174bc009e45 100644 --- a/apps/calendar/appinfo/app.php +++ b/apps/calendar/appinfo/app.php @@ -6,6 +6,7 @@ if(version_compare(PHP_VERSION, '5.3.0', '>=')){ OC::$CLASSPATH['OC_Calendar_Object'] = 'apps/calendar/lib/object.php'; 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_Search_Provider_Calendar'] = 'apps/calendar/lib/search.php'; OC_HOOK::connect('OC_User', 'post_deleteUser', 'OC_Calendar_Hooks', 'deleteUser'); OC_Util::addScript('calendar','loader'); OC_App::register( array( @@ -19,5 +20,5 @@ if(version_compare(PHP_VERSION, '5.3.0', '>=')){ 'icon' => OC_Helper::imagePath( 'calendar', 'icon.svg' ), 'name' => $l->t('Calendar'))); OC_App::registerPersonal('calendar', 'settings'); - require_once('apps/calendar/lib/search.php'); + OC_Search::registerProvider('OC_Search_Provider_Calendar'); } -- cgit v1.2.3