From 6596682c90f4df7f6edebea28246b80d762ce742 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 3 Mar 2009 21:48:13 +0000 Subject: Use the gallery root directory on the batch::operation call when generating random albums and images --- core/controllers/scaffold.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/controllers/scaffold.php') 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++) { -- cgit v1.2.3