diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-03 21:48:13 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-03 21:48:13 +0000 |
commit | 6596682c90f4df7f6edebea28246b80d762ce742 (patch) | |
tree | 8fc617c2f7a0c91a89eaeaa1cac63e5ef24ce291 /core | |
parent | f58bbe0610cea5406324d0f1b2e3a3b925a89645 (diff) |
Use the gallery root directory on the batch::operation call when
generating random albums and images
Diffstat (limited to 'core')
-rw-r--r-- | core/controllers/scaffold.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/scaffold.php b/core/controllers/scaffold.php index c7f336df..8f4b491f 100644 --- a/core/controllers/scaffold.php +++ b/core/controllers/scaffold.php @@ -244,7 +244,7 @@ class Scaffold_Controller extends Template_Controller { $test_images = glob(APPPATH . "tests/images/*.[Jj][Pp][Gg]"); - batch::operation("add", null); + batch::operation("add", ORM::factory("item", 1)); $album_count = $photo_count = 0; for ($i = 0; $i < $count; $i++) { |