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 10
10
use \BNETDocs \Libraries \Router ;
11
11
use \BNETDocs \Libraries \Server ;
12
12
use \BNETDocs \Libraries \ServerType ;
13
+ use \BNETDocs \Libraries \UserSession ;
13
14
use \BNETDocs \Models \Server \View as ServerViewModel ;
14
15
use \BNETDocs \Views \Server \ViewHtml as ServerViewHtmlView ;
15
16
use \CarlBennett \MVC \Libraries \Common ;
@@ -34,6 +35,7 @@ public function run(Router &$router) {
34
35
throw new UnspecifiedViewException ();
35
36
}
36
37
$ model = new ServerViewModel ();
38
+ $ model ->user_session = UserSession::load ($ router );
37
39
38
40
$ model ->server_id = $ this ->server_id ;
39
41
Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ class View extends Model {
9
9
public $ server ;
10
10
public $ server_id ;
11
11
public $ server_type ;
12
+ public $ user_session ;
12
13
13
14
public function __construct () {
14
15
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 ;
18
20
}
19
21
20
22
}
You can’t perform that action at this time.
0 commit comments