mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:50:20 +00:00
Move mode settings to App\Mode
- Move isAjax() to App\Mode - Move isTablet() to App\Mode - Move isMobile() to App\Mode - Refactor last usage of App->isBackend()
This commit is contained in:
parent
e7c3d327cc
commit
90b438e082
6 changed files with 148 additions and 58 deletions
|
@ -1124,7 +1124,7 @@ class Worker
|
|||
|
||||
$priority = PRIORITY_MEDIUM;
|
||||
// Don't fork from frontend tasks by default
|
||||
$dont_fork = Config::get("system", "worker_dont_fork", false) || !\get_app()->isBackend();
|
||||
$dont_fork = Config::get("system", "worker_dont_fork", false) || !\get_app()->getMode()->isBackend();
|
||||
$created = DateTimeFormat::utcNow();
|
||||
$force_priority = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue