summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/packager.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-12 13:08:29 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-12 13:14:02 -0800
commita5a8cfd1bc7cd03c224c731c3ff433eec033457d (patch)
treec6908a855745921983f0da6319aed82200cc5ce3 /modules/gallery/controllers/packager.php
parent79f700ef9f79926d5e806bd48e5a6f99b6ecc5bb (diff)
Re-generate the install.sql so that the keys of the block lists are an md5 hash of the module_name:block_id. Also change the packager so we delete the _cache variable for the module gallery not core.
Diffstat (limited to 'modules/gallery/controllers/packager.php')
-rw-r--r--modules/gallery/controllers/packager.php14
1 files changed, 2 insertions, 12 deletions
diff --git a/modules/gallery/controllers/packager.php b/modules/gallery/controllers/packager.php
index ae87d74b..f0e35b2d 100644
--- a/modules/gallery/controllers/packager.php
+++ b/modules/gallery/controllers/packager.php
@@ -62,6 +62,7 @@ class Packager_Controller extends Controller {
srand(0);
gallery_installer::install(true);
+
module::load_modules();
foreach (array("user", "comment", "organize", "info", "rss",
@@ -72,21 +73,10 @@ class Packager_Controller extends Controller {
}
private function _dump_database() {
- // We now have a clean install with just the packages that we want. Make sure that the
- // database is clean too.
- $i = 1;
- foreach (array("blocks_dashboard_sidebar", "blocks_dashboard_center") as $key) {
- $blocks = array();
- foreach (unserialize(module::get_var("gallery", $key)) as $rnd => $value) {
- $blocks[++$i] = $value;
- }
- module::set_var("gallery", $key, serialize($blocks));
- }
-
$db = Database::instance();
$db->query("TRUNCATE {sessions}");
$db->query("TRUNCATE {logs}");
- $db->query("DELETE FROM {vars} WHERE `module_name` = 'core' AND `name` = '_cache'");
+ $db->query("DELETE FROM {vars} WHERE `module_name` = 'gallery' AND `name` = '_cache'");
$db->update("users", array("password" => ""), array("id" => 1));
$db->update("users", array("password" => ""), array("id" => 2));