From 40fbf0a45028a503323ff598cc10741dcf0c3a61 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 27 Oct 2011 16:08:59 +0000 Subject: [PATCH] List each link on own line, add ID shortcut like filemanager, if available --- etemplate/inc/class.bo_merge.inc.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index fe5fe5c367..d253039565 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -306,9 +306,18 @@ abstract class bo_merge $link_titles = array(); foreach($links as $link_id => $link_info) { - $link_titles[] = egw_link::title($link_info['app'], $link_info['id']); + $title = egw_link::title($link_info['app'], $link_info['id']); + if(class_exists('stylite_links_stream_wrapper') && $link_info['app'] != egw_link::VFS_APPNAME) + { + if (!($shortcut = array_search($link_info['app'],stylite_links_stream_wrapper::$shortcut2app))) + { + $shortcut = $link_info['app'].':'; + } + $title .= ' ('.$shortcut.$link_info['id'].')'; + } + $link_titles[] = $title; } - return implode(", ",$link_titles); + return implode("\n",$link_titles); } /**