tbrehm
2012-10-18 ef21bd53b783203dd49e835577030d60b22e2af7
Fixed theme settings
3 files added
1 files modified
5 ■■■■ changed files
interface/web/themes/default_64_navimg/ispconfig_version 1 ●●●● patch | view | raw | blame | history
interface/web/themes/default_combobox/ispconfig_version 1 ●●●● patch | view | raw | blame | history
interface/web/themes/default_no_navimg/ispconfig_version 1 ●●●● patch | view | raw | blame | history
interface/web/tools/interface_settings.php 2 ●●● patch | view | raw | blame | history
interface/web/themes/default_64_navimg/ispconfig_version
New file
@@ -0,0 +1 @@
3.0.4.6
interface/web/themes/default_combobox/ispconfig_version
New file
@@ -0,0 +1 @@
3.0.4.6
interface/web/themes/default_no_navimg/ispconfig_version
New file
@@ -0,0 +1 @@
3.0.4.6
interface/web/tools/interface_settings.php
@@ -104,7 +104,7 @@
        
        if($this->dataRecord['app_theme'] != 'default') {
            $tmp_path = ISPC_THEMES_PATH."/".$this->dataRecord['app_theme'];
            if(!@is_dir($tmp_path) || !@file_exists($tmp_path."/ISPC_VERSION") || trim(file_get_contents($tmp_path."/ISPC_VERSION")) != ISPC_APP_VERSION) {
            if(!@is_dir($tmp_path) || (@file_exists($tmp_path."/ispconfig_version") && trim(file_get_contents($tmp_path."/ispconfig_version")) != ISPC_APP_VERSION)) {
                // fall back to default theme if this one is not compatible with current ispc version
                $this->dataRecord['app_theme'] = 'default';
            }