Commit 15aaebc8 authored by Ad Schellevis's avatar Ad Schellevis

(mvc) still delivering twice, funny thing is nobody probably noticed because...

(mvc) still delivering twice, funny thing is nobody probably noticed because delivered zip files (from CP) are unpacked normally
parent 92ed1a7b
......@@ -207,12 +207,9 @@ class ApiControllerBase extends ControllerRoot
if (is_array($data)) {
$this->response->setContentType('application/json', 'UTF-8');
$this->response->setContent(htmlspecialchars(json_encode($data), ENT_NOQUOTES));
} else {
// output raw data
$this->response->setContent($data);
}
}
return $this->response->send();
return $this->response->send();;
}
}
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