mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-22 04:02:53 -05:00
ProcessController: improve download link
This commit is contained in:
parent
f16715814f
commit
e4043d94a2
1 changed files with 5 additions and 6 deletions
|
|
@ -375,18 +375,17 @@ class ProcessController extends Controller
|
|||
public function downloadAction()
|
||||
{
|
||||
$bp = $this->loadModifiedBpConfig();
|
||||
|
||||
header(
|
||||
$response = $this->getResponse();
|
||||
$response->setHeader(
|
||||
'Content-Disposition',
|
||||
sprintf(
|
||||
'Content-Disposition: attachment; filename="%s.conf";',
|
||||
'attachment; filename="%s.conf";',
|
||||
$bp->getName()
|
||||
)
|
||||
);
|
||||
header('Content-Type: text/plain');
|
||||
$response->setHeader('Content-Type', 'text/plain');
|
||||
|
||||
echo $this->storage()->render($bp);
|
||||
// Didn't have time to lookup how to correctly disable our renderers
|
||||
// TODO: no exit :)
|
||||
$this->doNotRender();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue