summaryrefslogtreecommitdiff
path: root/core/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-12-13 05:01:12 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-12-13 05:01:12 +0000
commit80792d4fb156e8c9a06760361bbb66b5a7c1db59 (patch)
tree4caaa4dddc62828ed8adc67282e4133bb5c42fae /core/controllers
parent7b7bf37e673d184556c114d6083b2d7699ab00d3 (diff)
Set the resize and thumbnail maximum dimension into the module vars table
Diffstat (limited to 'core/controllers')
-rw-r--r--core/controllers/welcome.php3
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);