Skip to content
Snippets Groups Projects
Commit 1a49ac65 authored by Gina Haeussge's avatar Gina Haeussge
Browse files

Added option to make media search recursive

By providing a key 'recursive' in the opts array of the media search, the search recurses into namespaces.

darcs-hash:20080823100126-2b4f5-62a051fc901d61158347a2e87181e21fda87471d.gz
parent 9c71da5b
No related branches found
No related tags found
No related merge requests found
......@@ -201,7 +201,9 @@ 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 false;
if($type == 'd') {
return ($opts['recursive']);
}
$info = array();
$info['id'] = pathID($file,true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment