Skip to content

Commit 4a63285

Browse files
committed
refactor: rimozione impostazione non più utilizzata
1 parent 1cfe8e3 commit 4a63285

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎config.example.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@
3838
// Impostazioni di debug
3939
$debug = false;
4040

41-
// Permette di eseguire il cron anche se OSM è installato su localhost
42-
$forza_cron_localhost = false;
43-
4441
// Permette di disabilitare i cron e gli hooks
4542
$disable_cron = false;
4643
$disable_hooks = false;

‎cron.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
$cron_id = Cache::where('name', 'ID del cron')->first();
7575

7676
$disattiva = Cache::where('name', 'Disabilita cron')->first();
77-
if ($disattiva->content || (in_array($_SERVER['HTTP_HOST'], ['localhost', '127.0.0.1']) && !$forza_cron_localhost)) {
78-
echo "[CRON] STOP - Cron disabilitato o localhost\n";
77+
if ($disattiva->content) {
78+
echo "[CRON] STOP - Cron disabilitato\n";
7979

8080
return;
8181
}

0 commit comments

Comments
 (0)