Jeremy Newman : session call change

Jeremy Newman jnewman at winehq.org
Tue Sep 21 11:19:16 CDT 2021


Module: appdb
Branch: master
Commit: 89d525fa14ec671b80e7f1eaed3d6e321b9f3ba8
URL:    https://source.winehq.org/git/appdb.git/?a=commit;h=89d525fa14ec671b80e7f1eaed3d6e321b9f3ba8

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Tue Sep 21 11:12:39 2021 -0500

session call change

---

 include/header.php | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/header.php b/include/header.php
index b36aec9..e42d4e3 100644
--- a/include/header.php
+++ b/include/header.php
@@ -71,11 +71,13 @@ if (!empty($sHeaderCode))
 <?php
 
 // Display Status Messages
-$GLOBALS['session']->dumpmsgbuffer();
-if (is_array($GLOBALS['session']->msg) and count($GLOBALS['session']->msg) > 0)
+global $session;
+$session->dumpmsgbuffer();
+
+if (is_array($session->msg) and count($session->msg) > 0)
 {
     echo "<div id=\"whq-alert\">\n";
-    foreach ($GLOBALS['session']->msg as $msg)
+    foreach ($session->msg as $msg)
     {
         if (empty($msg))
             continue;




More information about the wine-cvs mailing list