File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1010use \BNETDocs \Libraries \Router ;
1111use \BNETDocs \Libraries \Server ;
1212use \BNETDocs \Libraries \ServerType ;
13+ use \BNETDocs \Libraries \UserSession ;
1314use \BNETDocs \Models \Server \View as ServerViewModel ;
1415use \BNETDocs \Views \Server \ViewHtml as ServerViewHtmlView ;
1516use \CarlBennett \MVC \Libraries \Common ;
@@ -34,6 +35,7 @@ public function run(Router &$router) {
3435 throw new UnspecifiedViewException ();
3536 }
3637 $ model = new ServerViewModel ();
38+ $ model ->user_session = UserSession::load ($ router );
3739
3840 $ model ->server_id = $ this ->server_id ;
3941
Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ class View extends Model {
99 public $ server ;
1010 public $ server_id ;
1111 public $ server_type ;
12+ public $ user_session ;
1213
1314 public function __construct () {
1415 parent ::__construct ();
15- $ this ->server = null ;
16- $ this ->server_id = null ;
17- $ this ->server_type = null ;
16+ $ this ->server = null ;
17+ $ this ->server_id = null ;
18+ $ this ->server_type = null ;
19+ $ this ->user_session = null ;
1820 }
1921
2022}
You can’t perform that action at this time.
0 commit comments