Commit f22f4ad0 authored by Ad Schellevis's avatar Ad Schellevis

(Captiveportal, new) fix removal of temp file

parent e978c501
......@@ -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'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment