mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
show chosen desktop theme when SESSION['show_mobile'] is false
This commit is contained in:
parent
5c0220df09
commit
a944a879b1
1 changed files with 2 additions and 2 deletions
4
boot.php
4
boot.php
|
@ -1965,8 +1965,8 @@ function current_theme(){
|
|||
|
||||
if($is_mobile) {
|
||||
if(isset($_SESSION['show_mobile']) && !$_SESSION['show_mobile']) {
|
||||
$system_theme = '';
|
||||
$theme_name = '';
|
||||
$system_theme = ((isset($a->config['system']['theme'])) ? $a->config['system']['theme'] : '');
|
||||
$theme_name = ((isset($_SESSION) && x($_SESSION,'theme')) ? $_SESSION['theme'] : $system_theme);
|
||||
}
|
||||
else {
|
||||
$system_theme = ((isset($a->config['system']['mobile_theme'])) ? $a->config['system']['mobile_theme'] : '');
|
||||
|
|
Loading…
Reference in a new issue