summaryrefslogtreecommitdiff
path: root/lib/exe/ajax.php
diff options
context:
space:
mode:
authorMatthias Schulte <post@lupo49.de>2011-07-17 12:18:37 +0200
committerMatthias Schulte <post@lupo49.de>2011-07-17 12:18:37 +0200
commit8e5a3957cd8de15f48dc27e9c07dfe4033fd6997 (patch)
treee819b734e24a3fb1a40da50383dfbaf34ba3b1d6 /lib/exe/ajax.php
parent3f3f8d1d768a4996d5a2fcc0ce8715e455ce7cad (diff)
parent1e542e417725bb148253929fac9146832d978e45 (diff)
downloadrpg-8e5a3957cd8de15f48dc27e9c07dfe4033fd6997.tar.gz
rpg-8e5a3957cd8de15f48dc27e9c07dfe4033fd6997.tar.bz2
Merge remote branch 'upstream/master'
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r--lib/exe/ajax.php18
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');
}
/**