diff options
author | plegall <plg@piwigo.org> | 2011-08-22 21:08:14 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-08-22 21:08:14 +0000 |
commit | fc1d1397412b9b62076ff2442cae2e13b35631ce (patch) | |
tree | f9e7d7b7a5722cd4bada2e68020a061d29a64c9b /include | |
parent | ab8deea23b898b94c65e2eec066441f2b4e42109 (diff) |
replace tabs by spaces for indentation introduced in r
git-svn-id: http://piwigo.org/svn/trunk@11981 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/category_default.inc.php | 57 |
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) ) { |