mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Fix Template class not recognizing extensions other than .html and .php
This commit is contained in:
parent
16572c4515
commit
d46d25c69f
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ class Template
|
|||
// Normalize the filename. Result will look like 'bar/example.html'
|
||||
$filename = trim(strtr($filename, ['\\' => '/', '//' => '/']), '/');
|
||||
$filename = preg_replace('/[\{\}\(\)\[\]<>\$\'"]/', '', $filename);
|
||||
if (!preg_match('/\.(html?|php)$/', $filename))
|
||||
if (!preg_match('/\.\w+$/', $filename) && !Storage::exists($this->absolute_dirname . $filename))
|
||||
{
|
||||
$filename .= '.html';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue