mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 03:52:15 +09:00
Fix layout and skin path in procMemberAuthAccount
This commit is contained in:
parent
3b5fd1cfbb
commit
cd74950c81
1 changed files with 4 additions and 8 deletions
|
|
@ -1898,18 +1898,14 @@ class MemberController extends Member
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$tpl_path = sprintf('%sskins/%s', $this->module_path, $config->skin ?: 'default');
|
$this->setLayoutAndTemplatePaths(Context::get('m') ? 'P' : 'M', $config);
|
||||||
if(!Rhymix\Framework\Storage::isDirectory($tpl_path))
|
$tpl_file = sprintf('%s%s', $this->getTemplatePath(), 'reset_password.html');
|
||||||
{
|
|
||||||
$tpl_path = sprintf('%sskins/%s', $this->module_path, 'default');
|
|
||||||
}
|
|
||||||
$tpl_file = sprintf('%s/%s', $tpl_path, 'reset_password.html');
|
|
||||||
if (!Rhymix\Framework\Storage::exists($tpl_file))
|
if (!Rhymix\Framework\Storage::exists($tpl_file))
|
||||||
{
|
{
|
||||||
$tpl_file = sprintf('%s/%s', $tpl_path, 'reset_password.blade.php');
|
$tpl_file = sprintf('%s%s', $this->getTemplatePath(), 'reset_password.blade.php');
|
||||||
if (!Rhymix\Framework\Storage::exists($tpl_file))
|
if (!Rhymix\Framework\Storage::exists($tpl_file))
|
||||||
{
|
{
|
||||||
$tpl_path = sprintf('%sskins/%s', $this->module_path, 'default');
|
$this->setTemplatePath(sprintf('%sskins/%s', $this->module_path, 'default'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue