diff --git a/main/admin/settings.php b/main/admin/settings.php index 5b4be09e84..cba370d07d 100644 --- a/main/admin/settings.php +++ b/main/admin/settings.php @@ -1,5 +1,5 @@ 'width: 60%; float: '.($text_dir=='rtl'?'right;':'left;'))); +$form = new FormValidator('profile', 'post', api_get_self()."?{$_SERVER['QUERY_STRING']}", null, array('style' => 'width: 60%; float: '.($text_dir=='rtl'?'right;':'left;'))); /* Make sure this is the first submit on the form, even though it is hidden! * Otherwise, if a user has productions and presses ENTER to submit, he will @@ -572,7 +572,7 @@ elseif ($form->validate()) $uidReset = true; include (api_get_path(INCLUDE_PATH).'local.inc.php'); $_SESSION['profile_update'] = 'success'; - header("Location: http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}?{$_SERVER['QUERY_STRING']}"); + header("Location: http://{$_SERVER['HTTP_HOST']}".api_get_self()."?{$_SERVER['QUERY_STRING']}"); exit; } diff --git a/main/exercice/adminhp.php b/main/exercice/adminhp.php index c0d193e67a..0ed1b396d1 100644 --- a/main/exercice/adminhp.php +++ b/main/exercice/adminhp.php @@ -22,7 +22,7 @@ * HotPotatoes administration. * @package dokeos.exercise * @author Istvan Mandak -* @version $Id: adminhp.php 12219 2007-05-01 18:46:59Z yannoo $ +* @version $Id: adminhp.php 12267 2007-05-03 14:07:32Z elixir_julian $ */ @@ -113,7 +113,7 @@ if(isset($newName)) } } -echo "
"; +echo ""; echo ""; echo "