diff options
Diffstat (limited to 'core/controllers/welcome.php')
-rw-r--r-- | core/controllers/welcome.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 575156e5..cff39fd1 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -206,9 +206,10 @@ class Welcome_Controller extends Template_Controller { $type = rand(0, 10) ? "photo" : "album"; } if ($type == "album") { + $thumbnail_size = module::get_var("core", "thumbnail_size"); $parents[] = album::create( $parent->id, "rnd_" . rand(), "Rnd $i", "random album $i", $owner_id) - ->set_thumbnail(DOCROOT . "core/tests/test.jpg", 200, 150) + ->set_thumbnail(DOCROOT . "core/tests/test.jpg", $thumbnail_size, $thumbnail_size) ->save(); } else { $photo_index = rand(0, count($test_images) - 1); |