From 5514a5a77e2d38cf763ed922b727ab305c8c8bb9 Mon Sep 17 00:00:00 2001 From: Christopher Smith Date: Sun, 27 Jan 2013 20:33:25 +0000 Subject: ensure parameter is passed down during recursion --- inc/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/search.php b/inc/search.php index 6590d7342..6fd7e9ae6 100644 --- a/inc/search.php +++ b/inc/search.php @@ -50,7 +50,7 @@ function search(&$data,$base,$func,$opts,$dir='',$lvl=1,$sort='natural'){ //give directories to userfunction then recurse foreach($dirs as $dir){ if (call_user_func_array($func, array(&$data,$base,$dir,'d',$lvl,$opts))){ - search($data,$base,$func,$opts,$dir,$lvl+1); + search($data,$base,$func,$opts,$dir,$lvl+1,$sort); } } //now handle the files -- cgit v1.2.3