mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix error when loading external page in document root folder
This commit is contained in:
parent
63fa80db82
commit
9ce7593820
2 changed files with 7 additions and 2 deletions
|
|
@ -241,7 +241,7 @@ class pageView extends page
|
|||
$oTemplate = TemplateHandler::getInstance();
|
||||
$real_target_dir = dirname($real_target_file);
|
||||
$tmp_cache_file = preg_replace('/\.cache\.php$/', '.compiled.php', $cache_file);
|
||||
$content = $oTemplate->compileDirect($real_target_dir, basename($real_target_file));
|
||||
$content = $oTemplate->compileDirect($real_target_dir . '/', basename($real_target_file));
|
||||
$success = Rhymix\Framework\Storage::write($tmp_cache_file, $content);
|
||||
if (!$success)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue