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

Fix oldui for Cron (closes #1248)

parent eb57d697
No related branches found
No related tags found
No related merge requests found
......@@ -78,13 +78,25 @@ class Cron
];
$urls = [];
foreach ($tags as $tag) {
$urls[] = [
'exec_href' => Module::getModuleURL('cron') . '/run/' . $tag . '/' . $key,
'href' => Module::getModuleURL('cron') . '/run/' . $tag . '/' . $key . '/xhtml',
'tag' => $tag,
'int' => (array_key_exists($tag, $def) ? $def[$tag] : $def['default']),
];
if ($this->config->getBoolean('usenewui', false)) {
foreach ($tags as $tag) {
$urls[] = [
'exec_href' => Module::getModuleURL('cron') . '/run/' . $tag . '/' . $key,
'href' => Module::getModuleURL('cron') . '/run/' . $tag . '/' . $key . '/xhtml',
'tag' => $tag,
'int' => (array_key_exists($tag, $def) ? $def[$tag] : $def['default']),
];
}
} else {
// cron.php?key=secret&tag=hourly&output=xhtml
foreach ($tags as $tag) {
$urls[] = [
'exec_href' => Module::getModuleURL('cron/cron.php', ['key' => $key, 'tag' => $tag]),
'href' => Module::getModuleURL('cron/cron.php', ['key' => $key, 'tag' => $tag, 'output' => 'xhtml']),
'tag' => $tag,
'int' => (array_key_exists($tag, $def) ? $def[$tag] : $def['default']),
];
}
}
$t = new Template($this->config, 'cron:croninfo.tpl.php', 'cron:cron');
......
......@@ -16,4 +16,4 @@ $output = $request->get('output');
$controller = new Controller\Cron($config, $session);
$response = $controller->run($tag, $key, $output);
$response->send();
$response->show();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment