mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user