ftimme
2012-11-14 aa78fde6a92f66b84d626e114d8b54a5fb6ece0c
interface/web/tools/user_settings.php
@@ -81,10 +81,13 @@
   function onBeforeUpdate() {
      global $app, $conf;
      
      if($_POST['passwort'] != $_POST['passwort2']) {
      if($conf['demo_mode'] == true && $this->id <= 3) $app->tform->errorMessage .= 'This function is disabled in demo mode.';
      if($_POST['passwort'] != $_POST['repeat_password']) {
         $app->tform->errorMessage = $app->tform->lng('password_mismatch');
      }
      $_SESSION['s']['user']['language'] = $_POST['language'];
      $_SESSION['s']['language'] = $_POST['language'];
   }
   
   
@@ -93,4 +96,4 @@
$page = new page_action;
$page->onLoad();
?>
?>