From: Harvie Date: Sun, 7 Nov 2010 04:10:48 +0000 (+0100) Subject: Maked directory names nicer. TODO: unify rendering of file and directory lines... X-Git-Url: http://git.harvie.cz/?p=mirrors%2FJukeBox.git;a=commitdiff_plain;h=e6edcf4245cbb38ffcaac57e33c5532155567428 Maked directory names nicer. TODO: unify rendering of file and directory lines... --- diff --git a/index.php b/index.php index 40b7db3..a17d7a3 100755 --- a/index.php +++ b/index.php @@ -204,8 +204,8 @@ function render_file_line($dir, $item, $dir_url, $index, $filesize, $parent = fa '" target="'.$GLOBALS['flash_player_frame'].'" class="icon ifplay">F/'. 'S'); } - echo(' '.unxss(str_replace('-',' - ',str_replace('_', ' ', -$item))).''.$filesize." MiB \n"); + echo(' '.unxss(str_replace('-',' - ',str_replace('_', ' ', $item))). + ''.$filesize." MiB \n"); } function render_dir_line($current_dir, $item, $i) { @@ -215,7 +215,7 @@ function render_dir_line($current_dir, $item, $i) { ''.$i.'P/'. 'R'); if($GLOBALS['useflash']) echo('/F'); - echo('[DIR] '.unxss(str_replace('_', ' ', $item)). + echo('[DIR] '.unxss(str_replace('-',' - ',str_replace('_', ' ', $item))). "\n"); }