Skip to content
Snippets Groups Projects
Commit 29f07d3e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

The tutorial to add cron is sometimes false. Quick hack for a solution

to hide it.
parent 32a453e8
Branches
No related tags found
No related merge requests found
...@@ -110,6 +110,8 @@ function dol_print_cron_urls() ...@@ -110,6 +110,8 @@ function dol_print_cron_urls()
print '<br>'; print '<br>';
// Add note // Add note
if (empty($conf->global->CRON_DISABLE_TUTORIAL_CRON))
{
$linuxlike=1; $linuxlike=1;
if (preg_match('/^win/i',PHP_OS)) $linuxlike=0; if (preg_match('/^win/i',PHP_OS)) $linuxlike=0;
if (preg_match('/^mac/i',PHP_OS)) $linuxlike=0; if (preg_match('/^mac/i',PHP_OS)) $linuxlike=0;
...@@ -124,6 +126,7 @@ function dol_print_cron_urls() ...@@ -124,6 +126,7 @@ function dol_print_cron_urls()
{ {
print $langs->trans("CronExplainHowToRunWin"); print $langs->trans("CronExplainHowToRunWin");
} }
}
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment