From 6cafc61f96e900790c8a1e3f0cd01b1b679e93b0 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 6 Nov 2008 05:51:20 +0000 Subject: album::set_thumbnail is now part of Item_Model so it can go. Fix a bug in the scaffolding where we weren't saving the album after adding its thumbnail (so its dimensions weren't getting set). --- core/controllers/welcome.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/controllers') diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 7509dc89..0106535a 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -96,7 +96,8 @@ class Welcome_Controller extends Template_Controller { switch(rand(0, 1)) { case 0: $parents[] = album::create($parent->id, "rnd_" . rand(), "Rnd $i", "rnd $i") - ->set_thumbnail(DOCROOT . "core/tests/test.jpg", 200, 150); + ->set_thumbnail(DOCROOT . "core/tests/test.jpg", 200, 150) + ->save(); break; case 1: -- cgit v1.2.3