mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +09:00
Fix #867 fallback to 'default' skin instead of default skin
This commit is contained in:
parent
53ca1a7b4c
commit
917b56b07e
2 changed files with 3 additions and 6 deletions
|
|
@ -72,8 +72,7 @@ class boardMobile extends boardView
|
||||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
||||||
if(!is_dir($template_path)||!$this->module_info->skin)
|
if(!is_dir($template_path)||!$this->module_info->skin)
|
||||||
{
|
{
|
||||||
$this->module_info->skin = 'default';
|
$template_path = sprintf("%sskins/%s/",$this->module_path, 'default');
|
||||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -81,8 +80,7 @@ class boardMobile extends boardView
|
||||||
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $this->module_info->mskin);
|
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $this->module_info->mskin);
|
||||||
if(!is_dir($template_path)||!$this->module_info->mskin)
|
if(!is_dir($template_path)||!$this->module_info->mskin)
|
||||||
{
|
{
|
||||||
$this->module_info->mskin = 'default';
|
$template_path = sprintf("%sm.skins/%s/",$this->module_path, 'default');
|
||||||
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $this->module_info->mskin);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->setTemplatePath($template_path);
|
$this->setTemplatePath($template_path);
|
||||||
|
|
|
||||||
|
|
@ -97,8 +97,7 @@ class boardView extends board
|
||||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
||||||
if(!is_dir($template_path)||!$this->module_info->skin)
|
if(!is_dir($template_path)||!$this->module_info->skin)
|
||||||
{
|
{
|
||||||
$this->module_info->skin = 'default';
|
$template_path = sprintf("%sskins/%s/",$this->module_path, 'default');
|
||||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
|
||||||
}
|
}
|
||||||
$this->setTemplatePath($template_path);
|
$this->setTemplatePath($template_path);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue