Skip to content
Snippets Groups Projects
Commit 91cc0be6 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix cron

parent 1578df91
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ namespace SimpleSAML\Module\cron; ...@@ -4,6 +4,7 @@ namespace SimpleSAML\Module\cron;
use SimpleSAML\Configuration; use SimpleSAML\Configuration;
use SimpleSAML\Session; use SimpleSAML\Session;
use SimpleSAML\XHTML\Template;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
$config = Configuration::getInstance(); $config = Configuration::getInstance();
...@@ -16,4 +17,8 @@ $output = $request->get('output'); ...@@ -16,4 +17,8 @@ $output = $request->get('output');
$controller = new Controller\Cron($config, $session); $controller = new Controller\Cron($config, $session);
$response = $controller->run($tag, $key, $output); $response = $controller->run($tag, $key, $output);
$response->show(); if ($response instanceof Template) {
$response->show();
} else {
$response->send();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment