add task 99 the correct way in installation as the constant FROXLOR_INSTALL_DIR is not set there

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p) 2014-09-12 07:50:05 +02:00
parent 997135d7c0
commit 37624a912e

View File

@ -285,7 +285,6 @@ class FroxlorInstall {
$message = $this->_lng['install']['froxlor_succ_installed'];
$link = '../index.php';
$linktext = $this->_lng['click_here_to_login'];
inserttask('99');
}
eval("\$navigation .= \"" . $this->_getTemplate("pagebottom") . "\";");
@ -480,6 +479,9 @@ class FroxlorInstall {
$db->query("UPDATE `".TABLE_PANEL_CRONRUNS."` SET `lastrun` = '".$ts."' WHERE `cronfile` ='cron_used_tickets_reset.php';");
$db->query("UPDATE `".TABLE_PANEL_CRONRUNS."` SET `lastrun` = '".$ts."' WHERE `cronfile` ='cron_ticketarchive.php';");
// insert task 99 to generate a correct cron.d-file automatically
$db->query("INSERT INTO `".TABLE_PANEL_TASKS."` SET `type` = '99';");
$content .= $this->_status_message('green', 'OK');
return $content;