From ed7accd237bae2bd76df5e6256d8ee2ce2f14308 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Sun, 28 Oct 2012 19:28:44 +0100 Subject: Change search to use routing --- search/ajax/search.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'search') diff --git a/search/ajax/search.php b/search/ajax/search.php index 41ee9ad5aba..f0ca5752b9a 100644 --- a/search/ajax/search.php +++ b/search/ajax/search.php @@ -21,17 +21,15 @@ * */ - -// Init owncloud -require_once '../../lib/base.php'; - // Check if we are a user OC_JSON::checkLoggedIn(); +OC_App::loadApps(); $query=(isset($_GET['query']))?$_GET['query']:''; if($query) { $result=OC_Search::search($query); OC_JSON::encodedPrint($result); -}else{ +} +else { echo 'false'; } -- cgit v1.2.3