diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-07-29 21:36:03 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-07-29 21:36:03 +0200 |
commit | bafd684eb694ed0bd86b46ff7cd36382c1cebc34 (patch) | |
tree | c3bb1e013d563263002d052eb41032076a36a5f9 /search | |
parent | 220132ca237f5077f5145bf327e8528a652ad559 (diff) | |
download | nextcloud-server-bafd684eb694ed0bd86b46ff7cd36382c1cebc34.tar.gz nextcloud-server-bafd684eb694ed0bd86b46ff7cd36382c1cebc34.zip |
Renaming classes :-)
Diffstat (limited to 'search')
-rw-r--r-- | search/appinfo/app.php | 2 | ||||
-rw-r--r-- | search/index.php | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/search/appinfo/app.php b/search/appinfo/app.php index 44834498fec..b91341643f2 100644 --- a/search/appinfo/app.php +++ b/search/appinfo/app.php @@ -1,5 +1,5 @@ <?php -OC_APP::register( array( 'order' => 2, "id" => 'search', 'name' => 'Search' )); +OC_App::register( array( 'order' => 2, "id" => 'search', 'name' => 'Search' )); ?> 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(); |