summaryrefslogtreecommitdiffstats
path: root/search/index.php
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-07-29 21:36:03 +0200
committerJakob Sack <kde@jakobsack.de>2011-07-29 21:36:03 +0200
commitbafd684eb694ed0bd86b46ff7cd36382c1cebc34 (patch)
treec3bb1e013d563263002d052eb41032076a36a5f9 /search/index.php
parent220132ca237f5077f5145bf327e8528a652ad559 (diff)
downloadnextcloud-server-bafd684eb694ed0bd86b46ff7cd36382c1cebc34.tar.gz
nextcloud-server-bafd684eb694ed0bd86b46ff7cd36382c1cebc34.zip
Renaming classes :-)
Diffstat (limited to 'search/index.php')
-rw-r--r--search/index.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/search/index.php b/search/index.php
index b9aca57cdec..7369a6d81ce 100644
--- a/search/index.php
+++ b/search/index.php
@@ -26,19 +26,19 @@
require_once('../lib/base.php');
// Check if we are a user
-if( !OC_USER::isLoggedIn()){
- header( "Location: ".OC_HELPER::linkTo( '', 'index.php' ));
+if( !OC_User::isLoggedIn()){
+ header( "Location: ".OC_Helper::linkTo( '', 'index.php' ));
exit();
}
// Load the files we need
-OC_UTIL::addStyle( 'search', 'search' );
+OC_Util::addStyle( 'search', 'search' );
$query=(isset($_POST['query']))?$_POST['query']:'';
if($query){
- $results=OC_SEARCH::search($query);
+ $results=OC_Search::search($query);
}else{
- header("Location: ".$WEBROOT.'/'.OC_APPCONFIG::getValue("core", "defaultpage", "files/index.php"));
+ header("Location: ".$WEBROOT.'/'.OC_Appconfig::getValue("core", "defaultpage", "files/index.php"));
exit();
}
@@ -50,7 +50,7 @@ foreach($results as $result){
$resultTypes[$result->type][]=$result;
}
-$tmpl = new OC_TEMPLATE( 'search', 'index', 'user' );
+$tmpl = new OC_Template( 'search', 'index', 'user' );
$tmpl->assign('resultTypes',$resultTypes);
$tmpl->printPage();