Commit cca571b9 authored by nkoth's avatar nkoth

[ENH] object link should replace title with addon group name if it is an internal name

parent 2c8c7b93
......@@ -89,6 +89,7 @@ function smarty_function_object_link_default( $smarty, $object, $title = null, $
$smarty->loadPlugin('smarty_modifier_sefurl');
$smarty->loadPlugin('smarty_modifier_escape');
$smarty->loadPlugin('smarty_modifier_addongroupname');
if (empty($title)) {
$title = TikiLib::lib('object')->get_title($type, $object);
......@@ -103,6 +104,9 @@ function smarty_function_object_link_default( $smarty, $object, $title = null, $
return '';
}
// get add on object title if needed
$title = smarty_modifier_addongroupname($title);
$text = $title;
$titleAttribute = '';
if ($type == 'wiki page') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment