Sfoglia il codice sorgente

Ensure theme value is loaded from user.conf

Kristan Kenney 5 anni fa
parent
commit
5f8dee3c62
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      bin/v-change-user-theme

+ 4 - 1
bin/v-change-user-theme

@@ -21,7 +21,8 @@ theme=$2
 source $HESTIA/func/main.sh
 # shellcheck source=/usr/local/hestia/conf/hestia.conf
 source $HESTIA/conf/hestia.conf
-
+# Unset theme variable from $HESTIA/conf/hestia.conf
+unset THEME
 
 #----------------------------------------------------------#
 #                    Verifications                         #
@@ -42,6 +43,8 @@ check_hestia_demo_mode
 #                       Action                             #
 #----------------------------------------------------------#
 
+
+
 if [ -z $THEME ]; then
     add_object_key "user" 'USER' "$user" 'THEME' 'LANGUAGE'
 fi