aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.inc.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-07-12 14:57:24 +0000
committerpatdenice <patdenice@piwigo.org>2008-07-12 14:57:24 +0000
commitb7709eae0dcb81df9eb668407b64f2cde38ba1f0 (patch)
treebdc03294c902c50e0c1e19414f400e1bdb5f4137 /include/functions_category.inc.php
parent2c08827ea0017b06d47323c98b2e1c28d7a3ebb8 (diff)
Merge from branch-1_7 (r2432).
Add triggers for category name (render_category_name). Add strip_tags for ALT attribute on category thumbnail. git-svn-id: http://piwigo.org/svn/trunk@2433 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r--include/functions_category.inc.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 721cc0038..0bca0897a 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -288,7 +288,14 @@ function display_select_categories($categories,
{
$option = str_repeat('&nbsp;',
(3 * substr_count($category['global_rank'], '.')));
- $option.= '- '.$category['name'];
+ $option.= '- ';
+ $option.= strip_tags(
+ trigger_event(
+ 'render_category_name',
+ $category['name'],
+ 'display_select_categories'
+ )
+ );
}
$tpl_cats[ $category['id'] ] = $option;
}