Fixed company prefs refresh after upgrade/restore.
[fa-stable.git] / admin / inst_upgrade.php
index 399cf8185667945426183cd0b01b8b8e3482399a..9691b22e0eedeb4aa15bf0f1bf2958d09031b11f 100644 (file)
@@ -128,8 +128,7 @@ if (get_post('Upgrade'))
                $_SESSION["wa_current_user"]->prefs = new user_prefs($user);
                display_notification(_('All companies data has been successfully updated'));
        }       
-       unset($_SESSION['SysPrefs']); // re-read system setup
-       $_SESSION['SysPrefs'] = new sys_prefs();
+       refresh_sys_prefs(); // re-read system setup
        $Ajax->activate('_page_body');
 }