mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +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
|
||||
{
|
||||
$tpl_path = sprintf('%sskins/%s', $this->module_path, $config->skin ?: 'default');
|
||||
if(!Rhymix\Framework\Storage::isDirectory($tpl_path))
|
||||
{
|
||||
$tpl_path = sprintf('%sskins/%s', $this->module_path, 'default');
|
||||
}
|
||||
$tpl_file = sprintf('%s/%s', $tpl_path, 'reset_password.html');
|
||||
$this->setLayoutAndTemplatePaths(Context::get('m') ? 'P' : 'M', $config);
|
||||
$tpl_file = sprintf('%s%s', $this->getTemplatePath(), 'reset_password.html');
|
||||
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))
|
||||
{
|
||||
$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