Răsfoiți Sursa

Delay the feeds actualization start notice (#2974)

* Delay the feeds actualization start notice

Move the actualization start notice until after SIMPLEPIE_SYSLOG_ENABLED is defined.

Fixes https://github.com/FreshRSS/FreshRSS/issues/2973

* Update app/actualize_script.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Craig Andrews 5 ani în urmă
părinte
comite
62a42a2063
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      app/actualize_script.php

+ 2 - 1
app/actualize_script.php

@@ -22,7 +22,6 @@ ob_start();
 echo 'Results: ', "\n";	//Buffered
 
 $begin_date = date_create('now');
-notice('FreshRSS starts feeds actualization at ' . $begin_date->format('c'));
 
 // Set the header params ($_GET) to call the FRSS application.
 $_GET['c'] = 'feed';
@@ -37,6 +36,8 @@ $system_conf = Minz_Configuration::get('system');
 $system_conf->auth_type = 'none';  // avoid necessity to be logged in (not saved!)
 define('SIMPLEPIE_SYSLOG_ENABLED', $system_conf->simplepie_syslog_enabled);
 
+notice('FreshRSS starting feeds actualization at ' . $begin_date->format('c'));
+
 // make sure the PHP setup of the CLI environment is compatible with FreshRSS as well
 performRequirementCheck($system_conf->db['type']);