From c4ba5b6f653145f134dbed64db70b2fee3ec53c5 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 1 Jan 2010 09:54:10 -0800 Subject: Correct the sql so that the guest and admin passwords are actually blanked as part of the export --- modules/gallery/controllers/packager.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/gallery/controllers/packager.php b/modules/gallery/controllers/packager.php index 2592da31..03d56fff 100644 --- a/modules/gallery/controllers/packager.php +++ b/modules/gallery/controllers/packager.php @@ -63,7 +63,7 @@ class Packager_Controller extends Controller { module::load_modules(); - foreach (array("user", "comment", "organize", "info", "rss", + foreach (array("user", "comment", "organize", "info", "rest", "rss", "search", "slideshow", "tag") as $module_name) { module::install($module_name); module::activate($module_name); @@ -89,8 +89,10 @@ class Packager_Controller extends Controller { ->where("module_name", "=", "gallery") ->where("name", "=", "_cache") ->execute(); - db::build()->update("users", array("password" => ""), array("id" => 1))->execute(); - db::build()->update("users", array("password" => ""), array("id" => 2))->execute(); + db::build()->update("users") + ->set(array("password" => "")) + ->where("id", "in", array(1, 2)) + ->execute(); $dbconfig = Kohana::config('database.default'); $conn = $dbconfig["connection"]; -- cgit v1.2.3