summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-09-23 17:03:25 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-09-23 17:03:25 -0700
commitb038e9cbb4d913088a26f8c4e6e4699de9c860d7 (patch)
tree2b522263f7b4b7e603abe3a5fc4a3966320633be /modules
parent65051a4bf77321518a0cf80bc328a7ed609dfc90 (diff)
set the version number to 13, so we will update the default themes in the gallery vars
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_installer.php11
-rw-r--r--modules/gallery/module.info2
2 files changed, 12 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index 6500482b..6ea1b227 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -364,6 +364,17 @@ class gallery_installer {
$db->query("UPDATE {items} SET `relative_url_cache` = NULL, `relative_path_cache` = NULL");
module::set_version("gallery", $version = 12);
}
+
+ if ($version == 12) {
+ if (module::get_var("gallery", "active_site_theme") == "default") {
+ module::set_var("gallery", "active_site_theme", "wind");
+ }
+ if (module::get_var("gallery", "active_admin_theme") == "admin_default") {
+ module::set_var("gallery", "active_admin_theme", "admin_wind");
+ }
+ module::set_version("gallery", $version = 13);
+ }
+
}
static function uninstall() {
diff --git a/modules/gallery/module.info b/modules/gallery/module.info
index 70bd91e2..65a0691c 100644
--- a/modules/gallery/module.info
+++ b/modules/gallery/module.info
@@ -1,3 +1,3 @@
name = "Gallery 3"
description = "Gallery core application"
-version = 12
+version = 13