mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-05 04:52:47 +02:00
bug 436: Category thumbnail display not ok if subcatify is false
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1406 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -110,6 +110,7 @@ if ($conf['subcatify'])
|
||||
else
|
||||
{
|
||||
// template thumbnail initialization
|
||||
$template->set_filenames( array( 'thumbnails' => 'thumbnails.tpl',));
|
||||
if (mysql_num_rows($result) > 0)
|
||||
{
|
||||
$template->assign_block_vars('thumbnails', array());
|
||||
@@ -156,5 +157,6 @@ else
|
||||
}
|
||||
}
|
||||
$conf['level_separator'] = $old_level_separator;
|
||||
$template->assign_var_from_handle('THUMBNAILS', 'thumbnails');
|
||||
}
|
||||
?>
|
||||
@@ -170,6 +170,7 @@ SELECT id, path, tn_ext
|
||||
}
|
||||
else
|
||||
{
|
||||
$template->set_filenames( array( 'thumbnails' => 'thumbnails.tpl',));
|
||||
$template->assign_block_vars('thumbnails', array());
|
||||
// first line
|
||||
$template->assign_block_vars('thumbnails.line', array());
|
||||
@@ -210,6 +211,7 @@ SELECT id, path, tn_ext
|
||||
$row_number = 0;
|
||||
}
|
||||
}
|
||||
$template->assign_var_from_handle('THUMBNAILS', 'thumbnails');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user