aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/category_default.inc.php2
-rw-r--r--include/functions_html.inc.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php
index 41f83f9e1..bc3057c74 100644
--- a/include/category_default.inc.php
+++ b/include/category_default.inc.php
@@ -111,7 +111,7 @@ foreach ($pictures as $row)
}
$name = render_element_name($row);
- $desc = render_element_description($row);
+ $desc = render_element_description($row, 'main_page_element_description');
$tpl_var = array_merge( $row, array(
'TN_ALT' => htmlspecialchars(strip_tags($name)),
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 2daac2c83..ae776f55e 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -543,12 +543,12 @@ function render_element_name($info)
return get_name_from_file($info['file']);
}
-function render_element_description($info)
+function render_element_description($info, $param='')
{
$comment = $info['comment'];
if (!empty($comment))
{
- $comment = trigger_event('render_element_description', $comment);
+ $comment = trigger_event('render_element_description', $comment, $param);
return $comment;
}
return '';