mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
(Captiveportal, new) fix removal of temp file
This commit is contained in:
parent
e978c50198
commit
f22f4ad00e
@ -147,7 +147,7 @@ class ServiceController extends ApiControllerBase
|
||||
// strip defaults and unchanged files from template (standard js libs, etc)
|
||||
$backend = new Backend();
|
||||
$response = $backend->configdpRun("captiveportal strip_template", array($temp_filename));
|
||||
unlink($temp_filename);
|
||||
unlink('/tmp/'.$temp_filename);
|
||||
$result = json_decode($response, true);
|
||||
if ($result != null && !array_key_exists('error', $result)) {
|
||||
$template->content = $result['payload'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user