mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:50:12 +00:00
Some rewrites:
- max_proccesses_reach() and maxload_reached() (why no _ behind max?) are called both way, static and with object reference. - this is strongly discouraged and should be avoided as its support (in PHP) may be dropped in future releases. - used $a = get_app(); to encapsulate code (even when the function does currently the same, it may be changed later) Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
47c60aa486
commit
293436e5fd
27 changed files with 69 additions and 67 deletions
|
@ -25,7 +25,7 @@ function cronhooks_run(&$argv, &$argc){
|
|||
|
||||
// Don't check this stuff if the function is called by the poller
|
||||
if (App::callstack() != "poller_run") {
|
||||
if (App::maxload_reached())
|
||||
if ($a->maxload_reached())
|
||||
return;
|
||||
if (App::is_already_running('cronhooks', 'include/cronhooks.php', 1140))
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue