diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-05 09:42:47 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-05 09:42:47 +0000 |
commit | ae00f739445717885e2fc82e241bae38b7e58d44 (patch) | |
tree | 96feb40e2ffbaa61a46500288d3e7a8fe831d155 /core/controllers | |
parent | e35c154414ac73788645666b3e4e71722706c6cd (diff) |
* 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.
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/welcome.php | 4 |
1 files changed, 2 insertions, 2 deletions
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: |