diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-12-13 10:04:00 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-12-13 10:04:00 +0100 |
commit | fa8adffee31ae8c6e5563badf3926e523032f5e2 (patch) | |
tree | ec93ca67cbdd394aba222c1ad66a251758469dd2 /inc/search.php | |
parent | 3dea4ebc5f730a60750f86e532775810508acae5 (diff) | |
download | rpg-fa8adffee31ae8c6e5563badf3926e523032f5e2.tar.gz rpg-fa8adffee31ae8c6e5563badf3926e523032f5e2.tar.bz2 |
removed some illogical path setups
darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
Diffstat (limited to 'inc/search.php')
-rw-r--r-- | inc/search.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/search.php b/inc/search.php index 35e5a358a..e8af8f64a 100644 --- a/inc/search.php +++ b/inc/search.php @@ -6,8 +6,8 @@ * @author Andreas Gohr <andi@splitbrain.org> */ - if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../').'/'); - require_once(DOKU_INC.'inc/common.php'); +if(!defined('DOKU_INC')) die('meh.'); +require_once(DOKU_INC.'inc/common.php'); /** * recurse direcory @@ -55,7 +55,7 @@ function search(&$data,$base,$func,$opts,$dir='',$lvl=1){ /** * Wrapper around call_user_func_array. - * + * * @deprecated */ function search_callback($func,&$data,$base,$file,$type,$lvl,$opts){ @@ -187,8 +187,8 @@ function search_namespaces(&$data,$base,$file,$type,$lvl,$opts){ function search_media(&$data,$base,$file,$type,$lvl,$opts){ //we do nothing with directories if($type == 'd') { - return ($opts['recursive']); - } + return ($opts['recursive']); + } $info = array(); $info['id'] = pathID($file,true); |