diff options
author | plegall <plg@piwigo.org> | 2004-12-28 19:33:52 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2004-12-28 19:33:52 +0000 |
commit | 24f7065c3f154dbc0a301c0df7dcd4ab1271534e (patch) | |
tree | 316a8b51d5ffcd2c68e22ba0959de3c1a4cc164a /category.php | |
parent | 45a8298abcfd0adbfa5c7a43d95db801b8559dca (diff) |
- bug fixed : if a category is not a numeric category, no title was
displayed
git-svn-id: http://piwigo.org/svn/trunk@663 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'category.php')
-rw-r--r-- | category.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/category.php b/category.php index 792d11ef0..86038d981 100644 --- a/category.php +++ b/category.php @@ -102,16 +102,16 @@ include(PHPWG_ROOT_PATH.'include/page_header.php'); $template->set_filenames( array('category'=>'category.tpl') ); //-------------------------------------------------------------- category title -if (!isset($page['cat'])) -{ - $template_title = $lang['no_category']; -} -else +if (isset($page['cat']) and is_numeric($page['cat'])) { $template_title = get_cat_display_name($page['cat_name'], 'category.php?cat=', false); } +else +{ + $template_title = $page['title']; +} if ( isset( $page['cat_nb_images'] ) and $page['cat_nb_images'] > 0 ) { |