summaryrefslogtreecommitdiff
path: root/core/controllers/admin_themes.php
diff options
context:
space:
mode:
authorFelix Rabinovich <virshu@users.sourceforge.net>2009-01-10 22:04:49 +0000
committerFelix Rabinovich <virshu@users.sourceforge.net>2009-01-10 22:04:49 +0000
commit705c55fb798c97dfb398cad23670fce2f5e16fb4 (patch)
tree8b0c7128f53adcb1633f8f3c7888458cbbc98905 /core/controllers/admin_themes.php
parent144f8c342b35b8940b93e5934f0c149266f5c313 (diff)
Submit theme values
Diffstat (limited to 'core/controllers/admin_themes.php')
-rw-r--r--core/controllers/admin_themes.php8
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")));
}
}