summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/theme.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-28 07:15:00 +0800
committerGallery Role Account <gallery@menalto.com>2009-05-28 11:07:09 +0800
commit4eedf804e1f26d95de6803e48c608d893c53b7d0 (patch)
tree6bd8b55bca9568d2abc65a63bd17bcfe928e7285 /modules/gallery/helpers/theme.php
parent3413fe6bfd423d45d083ff4ed62c0f72c2cc272f (diff)
Update all references to the core application to now point to the
gallery module. This type of mass update is prone to some small bugs. Signed-off-by: Gallery Role Account <gallery@menalto.com>
Diffstat (limited to 'modules/gallery/helpers/theme.php')
-rw-r--r--modules/gallery/helpers/theme.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/modules/gallery/helpers/theme.php b/modules/gallery/helpers/theme.php
index cbe224db..af340db6 100644
--- a/modules/gallery/helpers/theme.php
+++ b/modules/gallery/helpers/theme.php
@@ -31,10 +31,11 @@ class theme_Core {
static function load_themes() {
$modules = Kohana::config("core.modules");
if (Router::$controller == "admin") {
- array_unshift($modules, THEMEPATH . module::get_var("core", "active_admin_theme"));
+ array_unshift($modules, THEMEPATH . module::get_var("gallery", "active_admin_theme"));
} else {
- array_unshift($modules, THEMEPATH . module::get_var("core", "active_site_theme"));
+ array_unshift($modules, THEMEPATH . module::get_var("gallery", "active_site_theme"));
}
+
Kohana::config_set("core.modules", $modules);
}
@@ -43,17 +44,17 @@ class theme_Core {
$group = $form->group("edit_theme");
$group->input("page_size")->label(t("Items per page"))->id("gPageSize")
->rules("required|valid_digit")
- ->value(module::get_var("core", "page_size"));
+ ->value(module::get_var("gallery", "page_size"));
$group->input("thumb_size")->label(t("Thumbnail size (in pixels)"))->id("gThumbSize")
->rules("required|valid_digit")
- ->value(module::get_var("core", "thumb_size"));
+ ->value(module::get_var("gallery", "thumb_size"));
$group->input("resize_size")->label(t("Resized image size (in pixels)"))->id("gResizeSize")
->rules("required|valid_digit")
- ->value(module::get_var("core", "resize_size"));
+ ->value(module::get_var("gallery", "resize_size"));
$group->textarea("header_text")->label(t("Header text"))->id("gHeaderText")
- ->value(module::get_var("core", "header_text"));
+ ->value(module::get_var("gallery", "header_text"));
$group->textarea("footer_text")->label(t("Footer text"))->id("gFooterText")
- ->value(module::get_var("core", "footer_text"));
+ ->value(module::get_var("gallery", "footer_text"));
$group->submit("")->value(t("Save"));
return $form;
}