Merge pull request #5240 from rabuzarus/20180619_-_fix_missing_use_statement
worker.php - fix missing use statement
This commit is contained in:
commit
fc06980dcd
1 changed files with 3 additions and 2 deletions
|
@ -6,8 +6,10 @@
|
||||||
|
|
||||||
use Friendica\Core\Config;
|
use Friendica\Core\Config;
|
||||||
use Friendica\Core\Worker;
|
use Friendica\Core\Worker;
|
||||||
|
use Friendica\Util\DateTimeFormat;
|
||||||
|
|
||||||
function worker_init(){
|
function worker_init()
|
||||||
|
{
|
||||||
|
|
||||||
if (!Config::get("system", "frontend_worker")) {
|
if (!Config::get("system", "frontend_worker")) {
|
||||||
return;
|
return;
|
||||||
|
@ -35,7 +37,6 @@ function worker_init(){
|
||||||
Worker::callWorker();
|
Worker::callWorker();
|
||||||
|
|
||||||
if ($r = Worker::workerProcess()) {
|
if ($r = Worker::workerProcess()) {
|
||||||
|
|
||||||
// On most configurations this parameter wouldn't have any effect.
|
// On most configurations this parameter wouldn't have any effect.
|
||||||
// But since it doesn't destroy anything, we just try to get more execution time in any way.
|
// But since it doesn't destroy anything, we just try to get more execution time in any way.
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
|
Loading…
Reference in a new issue