mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 04:15:12 +00:00
commit
f2545c0b8d
2 changed files with 5 additions and 5 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'] : '');
|
||||
|
|
|
@ -365,11 +365,11 @@ function admin_page_site(&$a) {
|
|||
if($files) {
|
||||
foreach($files as $file) {
|
||||
$f = basename($file);
|
||||
$theme_name = ((file_exists($file . '/.experimental')) ? sprintf("%s - Experimental", $f) : $f);
|
||||
if (file_exists($file . '/.mobile')) {
|
||||
$theme_name = ((file_exists($file . '/experimental')) ? sprintf("%s - Experimental", $f) : $f);
|
||||
if (file_exists($file . '/mobile')) {
|
||||
$theme_choices_mobile[$f] = $theme_name;
|
||||
}
|
||||
if (file_exists($file . '/.accessibility')) {
|
||||
if (file_exists($file . '/accessibility')) {
|
||||
$theme_choices_accessibility[$f] = $theme_name;
|
||||
}
|
||||
$theme_choices[$f] = $theme_name;
|
||||
|
|
Loading…
Reference in a new issue