From 48e73e90817a9c525ed50dc332d4a4341a8c6295 Mon Sep 17 00:00:00 2001 From: Felix Rabinovich Date: Fri, 9 Jan 2009 23:54:40 +0000 Subject: Theme Administration cleanup initialization --- core/controllers/admin_themes.php | 2 +- core/helpers/theme.php | 3 +-- core/views/admin_themes.html.php | 4 +++- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/controllers/admin_themes.php b/core/controllers/admin_themes.php index 8943f588..4e9534fd 100644 --- a/core/controllers/admin_themes.php +++ b/core/controllers/admin_themes.php @@ -44,7 +44,7 @@ class Admin_Themes_Controller extends Admin_Controller { public function save() { access::verify_csrf(); - $theme = $this->input->post("theme"); + $theme = $this->input->post("themes"); if ($theme != module::get_var("core", "active_theme")) { module::set_var("core", "active_theme", $theme); message::success(t("Updated Theme")); diff --git a/core/helpers/theme.php b/core/helpers/theme.php index 62433898..20e9a9d8 100644 --- a/core/helpers/theme.php +++ b/core/helpers/theme.php @@ -39,8 +39,7 @@ class theme_Core { } public static function get_edit_form_admin($theme) { - $form = new Forge("admin/themes/edit/$theme->name", "Theme Parameters", "GET"); -// array("id" => "gThemeDetails")); + $form = new Forge("admin/themes/edit/$theme->name"); $group = $form->group("edit_theme")->label($theme->description); $group->input("name")->label(t("Name"))->id("gName")->value($theme->name); $group->submit(t("Modify Theme")); diff --git a/core/views/admin_themes.html.php b/core/views/admin_themes.html.php index e6475b45..c9e62983 100644 --- a/core/views/admin_themes.html.php +++ b/core/views/admin_themes.html.php @@ -25,6 +25,8 @@ "/> -
+
+ details ?> +
-- cgit v1.2.3