Fix #2237 failure to recognize layout.blade.php

This commit is contained in:
Kijin Sung 2023-12-30 23:53:05 +09:00
parent fd9c8bf458
commit a102f20766

View file

@ -467,12 +467,6 @@ class ModuleObject extends BaseObject
*/ */
public function setTemplateFile($filename) public function setTemplateFile($filename)
{ {
/*
if(isset($filename) && substr_compare($filename, '.html', -5) !== 0)
{
$filename .= '.html';
}
*/
$this->template_file = $filename; $this->template_file = $filename;
return $this; return $this;
} }
@ -527,11 +521,6 @@ class ModuleObject extends BaseObject
public function setEditedLayoutFile($filename) public function setEditedLayoutFile($filename)
{ {
if(!$filename) return $this; if(!$filename) return $this;
if(substr_compare($filename, '.html', -5) !== 0)
{
$filename .= '.html';
}
$this->edited_layout_file = $filename; $this->edited_layout_file = $filename;
return $this; return $this;
} }
@ -554,10 +543,6 @@ class ModuleObject extends BaseObject
*/ */
public function setLayoutFile($filename) public function setLayoutFile($filename)
{ {
if($filename && substr_compare($filename, '.html', -5) !== 0)
{
$filename .= '.html';
}
$this->layout_file = $filename; $this->layout_file = $filename;
return $this; return $this;
} }