diff options
Diffstat (limited to 'core/controllers/admin_themes.php')
-rw-r--r-- | core/controllers/admin_themes.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/controllers/admin_themes.php b/core/controllers/admin_themes.php index 9896ce50..278fb8f9 100644 --- a/core/controllers/admin_themes.php +++ b/core/controllers/admin_themes.php @@ -28,8 +28,8 @@ class Admin_Themes_Controller extends Admin_Controller { $file = THEMEPATH . $theme_name . "/theme.info"; $theme_info = new ArrayObject(parse_ini_file($file), ArrayObject::ARRAY_AS_PROPS); - $details = theme::get_edit_form_admin($theme_info); $theme_info['id'] = $theme_name; + $details = theme::get_edit_form_admin($theme_info); $theme_info['details'] = $details; if ($theme_info->admin) { $admin_themes[$theme_name] = $theme_info; @@ -61,7 +61,11 @@ class Admin_Themes_Controller extends Admin_Controller { $form = theme::get_edit_form_admin($theme_info); $valid = $form->validate(); if ($valid) { - ; + print json_encode(array("result" => "success", + "message" => t("Theme was successfully updated"))); + } else { + print json_encode(array("result" => "error", + "message" => t("Error saving theme values"))); } } |