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 <bart@thisnet.nl>2011-09-18 21:37:54 +0400
committerBart Visscher <bart@thisnet.nl>2011-09-18 21:37:54 +0400
commit82c7598861db175617694891bb9f21b426426225 (patch)
treefce8fb4717b4cc2a5dc6da8835bdb51b5fb40054 /search
parentd5656716f69caa6a1eb98706994ffcb9a08553a7 (diff)
Remove global vars and use the OC static version.
Removed global vars are DOCUMENTROOT, SERVERROOT, SUBURI, WEBROOT and CONFIG_DATADIRECTORY
Diffstat (limited to 'search')
-rw-r--r--search/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/search/index.php b/search/index.php
index 7369a6d81ce..c781c31f549 100644
--- a/search/index.php
+++ b/search/index.php
@@ -38,7 +38,7 @@ $query=(isset($_POST['query']))?$_POST['query']:'';
if($query){
$results=OC_Search::search($query);
}else{
- header("Location: ".$WEBROOT.'/'.OC_Appconfig::getValue("core", "defaultpage", "files/index.php"));
+ header("Location: ".OC::$WEBROOT.'/'.OC_Appconfig::getValue("core", "defaultpage", "files/index.php"));
exit();
}