diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-01 09:54:10 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-01 09:54:10 -0800 |
commit | c4ba5b6f653145f134dbed64db70b2fee3ec53c5 (patch) | |
tree | 8c4af9493c671af73897f276b5c6d14b90af2407 | |
parent | ee1a032e4dec8dcb85702ac2c30807345feaa7e6 (diff) |
Correct the sql so that the guest and admin passwords are actually blanked as part of the export
-rw-r--r-- | modules/gallery/controllers/packager.php | 8 |
1 files changed, 5 insertions, 3 deletions
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"]; |