openrat-cms

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

commit cc291576bcd33c13abd884a50ce94fe99d28f4d7
parent c73670449edc21fd573935e34265809f381d27b8
Author: dankert <devnull@localhost>
Date:   Tue, 15 Dec 2009 00:07:18 +0100

Pfad-Teile bei Bedarf kürzen (Fix)

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

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