Fix #2228 incorrect fallback to default skin when Blade template is present

This commit is contained in:
Kijin Sung 2023-12-08 21:57:54 +09:00
parent 9c145480fe
commit 1a8b84e75b

View file

@ -235,7 +235,10 @@ class NcenterliteView extends Ncenterlite
$path = $this->getTemplatePath(); $path = $this->getTemplatePath();
if (!file_exists($path . $filename . '.html')) if (!file_exists($path . $filename . '.html'))
{ {
$this->setTemplatePath(dirname($path) . '/default/'); if (!file_exists($path . $filename . '.blade.php'))
{
$this->setTemplatePath(dirname($path) . '/default/');
}
} }
$this->setTemplateFile($filename); $this->setTemplateFile($filename);
} }