summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/controllers/admin_themes.php2
-rw-r--r--core/helpers/theme.php3
-rw-r--r--core/views/admin_themes.html.php4
3 files changed, 5 insertions, 4 deletions
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 @@
</tr></tbody></table>
<input type="submit" value="<?= t("Save") ?>"/>
</form>
- <div id="gThemeDetails"></div>
+ <div id="gThemeDetails">
+ <?= $themes[$active]->details ?>
+ </div>
</div>