From 547db379f60555207d55fbddcd4aeefc7e35930a Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 27 Jun 2006 00:37:18 +0000 Subject: [PATCH] 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 --- include/category_recent_cats.inc.php | 2 ++ include/category_subcats.inc.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/category_recent_cats.inc.php b/include/category_recent_cats.inc.php index 2663bbcb3..f1d23ad77 100644 --- a/include/category_recent_cats.inc.php +++ b/include/category_recent_cats.inc.php @@ -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'); } ?> \ No newline at end of file diff --git a/include/category_subcats.inc.php b/include/category_subcats.inc.php index aefe8e392..7800e6319 100644 --- a/include/category_subcats.inc.php +++ b/include/category_subcats.inc.php @@ -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'); } } ?>