openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c73670449edc21fd573935e34265809f381d27b8
parent 227ec8ecee3f9cff16d2dea5950c049d20de2176
Author: dankert <devnull@localhost>
Date:   Tue, 15 Dec 2009 00:03:03 +0100

Pfad-Teile bei Bedarf kürzen

Diffstat:
actionClasses/ElementAction.class.php | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/actionClasses/ElementAction.class.php b/actionClasses/ElementAction.class.php @@ -524,7 +524,10 @@ class ElementAction extends Action { $f = new Folder( $o->parentid ); $f->load(); - $objects[ $id ] .= implode( FILE_SEP,$f->parentObjectNames(false,true) ); + $names = $f->parentObjectNames(false,true); + foreach( $names as $id=>$name ) + $names[$id] = Text::maxLength($name,15,'..',STR_PAD_BOTH); + $objects[ $id ] .= implode( FILE_SEP,$names ); } $objects[ $id ] .= FILE_SEP.$o->name; @@ -554,7 +557,10 @@ class ElementAction extends Action { $f = new Folder( $o->parentid ); $f->load(); - $folders[ $id ] = implode( ' &raquo; ',$f->parentObjectNames(true,true) ); + $names = $f->parentObjectNames(true,true); + foreach( $names as $id=>$name ) + $names[$id] = Text::maxLength($name,15,'..',STR_PAD_BOTH); + $folders[ $id ] = implode( ' &raquo; ',$names ); $folders[ $id ] .= ' &raquo; '; } $folders[ $id ] .= $o->name;