mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-19 10:23:16 +09:00
임시파일도 사용할 수 없다면 에러 출력
This commit is contained in:
parent
7f2aa69f3a
commit
11a3001c3c
1 changed files with 5 additions and 1 deletions
|
|
@ -142,7 +142,11 @@ class TemplateHandler
|
|||
if(Rhymix\Framework\Storage::write($this->compiled_file, $buff) === false)
|
||||
{
|
||||
$tmpfilename = tempnam(sys_get_temp_dir(), 'rx-compiled');
|
||||
Rhymix\Framework\Storage::write($tmpfilename, $buff);
|
||||
if($tmpfilename === false || Rhymix\Framework\Storage::write($tmpfilename, $buff) === false)
|
||||
{
|
||||
return 'Fatal Error : Cannot create temporary file. Please check permissions.';
|
||||
}
|
||||
|
||||
$this->compiled_file = $tmpfilename;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue