From 3838caed15ac73f81827829b6c094aae3c3f3539 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 4 Aug 2010 23:09:57 +0000 Subject: fixed bug where latest photos widget was trying to display 4 photos across instead of three - need a better long term solution --- views/default/tidypics/gallery.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'views/default/tidypics/gallery.php') diff --git a/views/default/tidypics/gallery.php b/views/default/tidypics/gallery.php index 74aa34500..ba6f7b11d 100644 --- a/views/default/tidypics/gallery.php +++ b/views/default/tidypics/gallery.php @@ -4,8 +4,12 @@ * */ -// four albums across -$num_wide = 4; +if ($vars['context'] == 'widget') { + $num_wide = 3; +} else { + // four albums across + $num_wide = 4; +} $context = $vars['context']; $offset = $vars['offset']; -- cgit v1.2.3