diff options
author | Guy Brand <gb@unistra.fr> | 2011-07-12 19:45:12 +0200 |
---|---|---|
committer | Guy Brand <gb@unistra.fr> | 2011-07-12 19:45:12 +0200 |
commit | 1e542e417725bb148253929fac9146832d978e45 (patch) | |
tree | e819b734e24a3fb1a40da50383dfbaf34ba3b1d6 /lib/exe/ajax.php | |
parent | b704da0446180981f7b286604f732155a76306f7 (diff) | |
parent | a1dee2b998bc3dc8436bb076435d405ec412e054 (diff) | |
download | rpg-1e542e417725bb148253929fac9146832d978e45.tar.gz rpg-1e542e417725bb148253929fac9146832d978e45.tar.bz2 |
Merge branch 'master' of github.com:splitbrain/dokuwiki
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r-- | lib/exe/ajax.php | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php index 1056a05f8..2bfa3680c 100644 --- a/lib/exe/ajax.php +++ b/lib/exe/ajax.php @@ -192,12 +192,10 @@ function ajax_medians(){ $data = array(); search($data,$conf['mediadir'],'search_index',array('nofiles' => true),$dir); - foreach($data as $item){ - $item['level'] = $lvl+1; - echo media_nstree_li($item); - echo media_nstree_item($item); - echo '</li>'; + foreach(array_keys($data) as $item){ + $data[$item]['level'] = $lvl+1; } + echo html_buildlist($data, 'idx', 'media_nstree_item', 'media_nstree_li'); } /** @@ -229,14 +227,10 @@ function ajax_index(){ $data = array(); search($data,$conf['datadir'],'search_index',array('ns' => $ns),$dir); - foreach($data as $item){ - $item['level'] = $lvl+1; - echo html_li_index($item); - echo '<div class="li">'; - echo html_list_index($item); - echo '</div>'; - echo '</li>'; + foreach(array_keys($data) as $item){ + $data[$item]['level'] = $lvl+1; } + echo html_buildlist($data, 'idx', 'html_list_index', 'html_li_index'); } /** |