From ae00f739445717885e2fc82e241bae38b7e58d44 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 5 Nov 2008 09:42:47 +0000 Subject: * Add thumbnail and resize dimensions to the item table and use them properly in the theme. * Move thumbnail and resize generation down into the model for consistency. * Add a sample thumbnail for albums * Fix a bug in the ORM to clear the cache when we reload an object. * Add Kohana docs to the scaffold. --- core/controllers/welcome.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/controllers/welcome.php') diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 1c90842c..f421ffc5 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -52,8 +52,8 @@ class Welcome_Controller extends Template_Controller { $parent = $parents[array_rand($parents)]; switch(rand(0, 1)) { case 0: - $album = album::create($parent->id, "rnd_" . rand(), "Rnd $i", "rnd $i"); - $parents[] = $album; + $parents[] = album::create($parent->id, "rnd_" . rand(), "Rnd $i", "rnd $i") + ->set_thumbnail(DOCROOT . "core/tests/test.jpg", 200, 150); break; case 1: -- cgit v1.2.3