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
path: root/search
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-10-28 22:28:44 +0400
committerBart Visscher <bartv@thisnet.nl>2012-10-29 18:04:55 +0400
commited7accd237bae2bd76df5e6256d8ee2ce2f14308 (patch)
treef28e327add5e36e8f2c65d0a916ce75928ee90e3 /search
parent1bdd0c949bca2f68da0ab3f47efbec10a7e51702 (diff)
Change search to use routing
Diffstat (limited to 'search')
-rw-r--r--search/ajax/search.php8
1 files changed, 3 insertions, 5 deletions
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';
}