File tree 3 files changed +3
-4
lines changed
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2
2
if (isset($_site_idx)) $_site_idx++; else $_site_idx = 0;
3
3
$previous_component = isset($component)?$component:null;
4
4
$site = $component = $this->_component['site'][$_site_idx] ?? [];
5
- //$site = \Vvveb\session('site');
6
5
?>
7
6
8
7
[data-v-component-site] [data-v-site-description-*]|innerText = $site['description']['@@__data-v-site-description-(*)__@@']
@@ -27,4 +26,4 @@ echo $site['description'][$name] ?? '';
27
26
28
27
[data-v-component-site]|append = <?php
29
28
$component = $previous_component;
30
- ?>
29
+ ?>
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function __construct($options = []) {
46
46
if (! self :: $ global ) {
47
47
$ user = User::current ();
48
48
self :: $ global ['start ' ] = 0 ;
49
- self :: $ global ['site_id ' ] = defined ('SITE_ID ' ) ? SITE_ID : 0 ;
49
+ self :: $ global ['site_id ' ] = sess ( ' site_id ' ) ?? ( defined ('SITE_ID ' ) ? SITE_ID : 0 ) ;
50
50
self :: $ global ['user_id ' ] = $ user ['user_id ' ] ?? null ;
51
51
self :: $ global ['user_group_id ' ] = $ user ['user_group_id ' ] ?? 1 ;
52
52
self :: $ global ['language_id ' ] = $ request ->request ['language_id ' ] ?? sess ('language_id ' ) ?? 1 ;
You can’t perform that action at this time.
0 commit comments