mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix backward incompatible behavior when skin directory is a symlink
This commit is contained in:
parent
da1e6c1b8d
commit
18b5d66605
1 changed files with 3 additions and 3 deletions
|
|
@ -651,7 +651,7 @@ class ModuleObject extends BaseObject
|
|||
$skin = ModuleModel::getModuleDefaultSkin($this->module, 'P') ?: 'default';
|
||||
}
|
||||
$template_path = sprintf('%sskins/%s', $this->module_path, $skin);
|
||||
if (!Rhymix\Framework\Storage::isDirectory($template_path))
|
||||
if (!Rhymix\Framework\Storage::exists($template_path))
|
||||
{
|
||||
$template_path = sprintf('%sskins/%s', $this->module_path, 'default');
|
||||
}
|
||||
|
|
@ -672,7 +672,7 @@ class ModuleObject extends BaseObject
|
|||
$skin = ModuleModel::getModuleDefaultSkin($this->module, 'P') ?: 'default';
|
||||
}
|
||||
$template_path = sprintf('%sskins/%s', $this->module_path, $skin);
|
||||
if (!Rhymix\Framework\Storage::isDirectory($template_path))
|
||||
if (!Rhymix\Framework\Storage::exists($template_path))
|
||||
{
|
||||
$template_path = sprintf('%sskins/%s', $this->module_path, 'default');
|
||||
}
|
||||
|
|
@ -680,7 +680,7 @@ class ModuleObject extends BaseObject
|
|||
else
|
||||
{
|
||||
$template_path = sprintf('%sm.skins/%s', $this->module_path, $mskin);
|
||||
if (!Rhymix\Framework\Storage::isDirectory($template_path))
|
||||
if (!Rhymix\Framework\Storage::exists($template_path))
|
||||
{
|
||||
$template_path = sprintf("%sm.skins/%s/", $this->module_path, 'default');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue