Switch logged in user to static typed variable instead of in $GLOBALS

This commit is contained in:
Alex Cabal 2024-11-10 22:37:59 -06:00
parent acb30b897c
commit 1449148989
25 changed files with 88 additions and 91 deletions

View file

@ -1,6 +1,6 @@
<section id="accessing-the-feeds">
<h2>Accessing the feeds</h2>
<? if($GLOBALS['User'] === null){ ?>
<? if(Session::$User === null){ ?>
<p>Our New Releases feeds are open to everyone. Our other feeds are a benefit of Patrons Circle membership.</p>
<ul>
<li>
@ -19,7 +19,7 @@
<p>
<i>If youre a Patrons Circle member, when prompted enter your email address and leave the password field blank to access a feed.</i>
</p>
<? }elseif($GLOBALS['User']->Benefits->CanAccessFeeds){ ?>
<? }elseif(Session::$User->Benefits->CanAccessFeeds){ ?>
<p>When prompted enter your email address and leave the password field blank to access a feed.</p>
<? }else{ ?>
<p>