summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/admin_theme_details.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/controllers/admin_theme_details.php')
-rw-r--r--modules/gallery/controllers/admin_theme_details.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/modules/gallery/controllers/admin_theme_details.php b/modules/gallery/controllers/admin_theme_details.php
index 542ec31c..fec1311b 100644
--- a/modules/gallery/controllers/admin_theme_details.php
+++ b/modules/gallery/controllers/admin_theme_details.php
@@ -28,32 +28,32 @@ class Admin_Theme_Details_Controller extends Admin_Controller {
public function save() {
$form = theme::get_edit_form_admin();
if ($form->validate()) {
- module::set_var("core", "page_size", $form->edit_theme->page_size->value);
+ module::set_var("gallery", "page_size", $form->edit_theme->page_size->value);
$thumb_size = $form->edit_theme->thumb_size->value;
$thumb_dirty = false;
- if (module::get_var("core", "thumb_size") != $thumb_size) {
- graphics::remove_rule("core", "thumb", "resize");
+ if (module::get_var("gallery", "thumb_size") != $thumb_size) {
+ graphics::remove_rule("gallery", "thumb", "resize");
graphics::add_rule(
- "core", "thumb", "resize",
+ "gallery", "thumb", "resize",
array("width" => $thumb_size, "height" => $thumb_size, "master" => Image::AUTO),
100);
- module::set_var("core", "thumb_size", $thumb_size);
+ module::set_var("gallery", "thumb_size", $thumb_size);
}
$resize_size = $form->edit_theme->resize_size->value;
$resize_dirty = false;
- if (module::get_var("core", "resize_size") != $resize_size) {
- graphics::remove_rule("core", "resize", "resize");
+ if (module::get_var("gallery", "resize_size") != $resize_size) {
+ graphics::remove_rule("gallery", "resize", "resize");
graphics::add_rule(
- "core", "resize", "resize",
+ "gallery", "resize", "resize",
array("width" => $resize_size, "height" => $resize_size, "master" => Image::AUTO),
100);
- module::set_var("core", "resize_size", $resize_size);
+ module::set_var("gallery", "resize_size", $resize_size);
}
- module::set_var("core", "header_text", $form->edit_theme->header_text->value);
- module::set_var("core", "footer_text", $form->edit_theme->footer_text->value);
+ module::set_var("gallery", "header_text", $form->edit_theme->header_text->value);
+ module::set_var("gallery", "footer_text", $form->edit_theme->footer_text->value);
message::success(t("Updated theme details"));
url::redirect("admin/theme_details");