From d357340b3926a4f2956bbd9792c27e9922b00f15 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 4 Feb 2009 10:07:55 +0000 Subject: [PATCH] Software Upgrade (re-read of current user needed) --- CHANGELOG.txt | 4 ++++ admin/inst_upgrade.php | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d0497ff0..02c0a083 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +04-Feb-2009 Joe Hunt +# Software Upgrade (re-read of current user needed) +$ /admin/inst_upgrade.php + 03-Feb-2009 Joe Hunt ! install/index.php link to AGPL license $ /install/index.php diff --git a/admin/inst_upgrade.php b/admin/inst_upgrade.php index 63a71c53..2946c79d 100644 --- a/admin/inst_upgrade.php +++ b/admin/inst_upgrade.php @@ -156,7 +156,13 @@ if (get_post('Upgrade')) if (!$ret) break; } if($ret) + { // re-read the prefs + global $path_to_root; + include_once($path_to_root . "/admin/db/users_db.inc"); + $user = get_user($_SESSION["wa_current_user"]->username); + $_SESSION["wa_current_user"]->prefs = new user_prefs($user); display_notification(_('All companies data has been successfully updated')); + } $Ajax->activate('_page_body'); } -- 2.30.2