From fa8adffee31ae8c6e5563badf3926e523032f5e2 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 13 Dec 2008 10:04:00 +0100 Subject: removed some illogical path setups darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz --- inc/search.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'inc/search.php') 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 */ - 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); -- cgit v1.2.3