- path2url() function modfied in /exec/output.exec.php

git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@25 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
jim
2006-10-13 18:18:34 +00:00
parent ec6b80609b
commit 40ec17bdba

View File

@@ -51,7 +51,13 @@ class Path {
$path = explode('/', rtrim($path, '/'));
$last = count($path)-1;
foreach( $path as $key => $value ) {
$return .= ($key != $last) ? '<a href="'.$root.$previous.$value.'/" title="'.$root.$previous.$value.'/">'.$value.'/</a>' : $value.'/';
if ( $key != $last ) {
$return .= '<a href="'.$root.$previous.$value.'/" title="'.$root.$previous.$value.'/">'.$value;
$return .= ( $value != '' ) ? '</a>/' : '/</a>' ;
} else {
$return .= $value.'/';
}
// $return .= ($key != $last) ? '<a href="'.$root.$previous.$value.'/" title="'.$root.$previous.$value.'/">'.$value.'</a>/' : $value.'/';
$previous .= $value.'/';
}
return $return;