mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
- 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
This commit is contained in:
+5
-5
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user