aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/category_default.inc.php57
1 files changed, 29 insertions, 28 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php
index c4eb448bf..40e5b6814 100644
--- a/include/category_default.inc.php
+++ b/include/category_default.inc.php
@@ -136,34 +136,35 @@ foreach ($pictures as $row)
$tpl_var['NB_HITS'] = $row['hit'];
}
- if (isset($row['name']) and $row['name'] != '')
- {
- $name = $row['name'];
- }
- else
- {
- $name = str_replace('_', ' ', get_filename_wo_extension($row['file']));
- }
-
- $name = trigger_event('render_element_description', $name);
-
- switch ($page['section'])
- {
- case 'best_rated' :
- {
- $name = '('.$row['rating_score'].') '.$name;
- break;
- }
- case 'most_visited' :
- {
- if ( !$user['show_nb_hits']) {
- $name = '('.$row['hit'].') '.$name;
- }
- break;
- }
- }
-
- $tpl_var['NAME'] = $name;
+ if (isset($row['name']) and $row['name'] != '')
+ {
+ $name = $row['name'];
+ }
+ else
+ {
+ $name = str_replace('_', ' ', get_filename_wo_extension($row['file']));
+ }
+
+ $name = trigger_event('render_element_description', $name);
+
+ switch ($page['section'])
+ {
+ case 'best_rated' :
+ {
+ $name = '('.$row['rating_score'].') '.$name;
+ break;
+ }
+ case 'most_visited' :
+ {
+ if ( !$user['show_nb_hits'])
+ {
+ $name = '('.$row['hit'].') '.$name;
+ }
+ break;
+ }
+ }
+
+ $tpl_var['NAME'] = $name;
if ( isset($nb_comments_of) )
{