2011-08-31 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* operation/users/user_edit.php: Reload page to update skin. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4858 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c967267fbb
commit
055e0580c2
|
@ -1,3 +1,7 @@
|
|||
2011-08-31 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* operation/users/user_edit.php: Reload page to update skin.
|
||||
|
||||
2011-08-30 Koichiro Kikuchi <koichiro@rworks.jp>
|
||||
|
||||
* include/functions_api.php: Fixed join parameter to avoid
|
||||
|
|
|
@ -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 '<form name="user_mod" method="post" action="index.php?sec=usuarios&sec2=operation/users/user_edit&modified=1&id='.$id.'">';
|
||||
|
||||
echo '<table cellpadding="4" cellspacing="4" class="databox" width="98%">';
|
||||
|
|
Loading…
Reference in New Issue