diff options
author | Bart Visscher <bart@thisnet.nl> | 2011-09-18 21:37:54 +0400 |
---|---|---|
committer | Bart Visscher <bart@thisnet.nl> | 2011-09-18 21:37:54 +0400 |
commit | 82c7598861db175617694891bb9f21b426426225 (patch) | |
tree | fce8fb4717b4cc2a5dc6da8835bdb51b5fb40054 /search | |
parent | d5656716f69caa6a1eb98706994ffcb9a08553a7 (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.php | 2 |
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(); } |