diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 28a0edda56..7c0e77dcc0 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2011-08-31 Juan Manuel Ramon + + * operation/users/user_edit.php: Reload page to update skin. + 2011-08-30 Koichiro Kikuchi * include/functions_api.php: Fixed join parameter to avoid diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php index 290faa1bc9..a7314c3472 100644 --- a/pandora_console/operation/users/user_edit.php +++ b/pandora_console/operation/users/user_edit.php @@ -24,6 +24,7 @@ include_once($config['homedir'] . '/include/functions_users.php'); include_once ($config['homedir'] . '/include/functions_groups.php'); $id = get_parameter_get ("id", $config["id_user"]); // ID given as parameter +$status = get_parameter ("status", -1); // Flag to print action status message $user_info = get_user_info ($id); $id = $user_info["id_user"]; //This is done in case there are problems with uppercase/lowercase (MySQL auth has that problem) @@ -86,9 +87,25 @@ if (isset ($_GET["modified"]) && !$view_mode) { __('Error updating user info')); } + // Reload page to update skin + if ($return){ + header ('location:' . $config['homeurl'] . '/index.php?sec=usuarios&sec2=operation/users/user_edit&status=1'); + } + else{ + header ('location:' . $config['homeurl'] . '/index.php?sec=usuarios&sec2=operation/users/user_edit&status=0'); + } + $user_info = $upd_info; } +// Prints action status for current message +if ($status != -1){ + ui_print_result_message ($status, + __('User info successfully updated'), + __('Error updating user info')); +} + + echo '
'; echo '';