}
use \Friendica\Core\Config;
-use \Friendica\Core\PConfig;
require_once("boot.php");
unset($db_host, $db_user, $db_pass, $db_data);
};
+ Config::load();
+
// Quit when in maintenance
if (Config::get('system', 'maintenance', true)) {
return;
}
+ $a->set_baseurl(Config::get('system', 'url'));
+
+ load_hooks();
+
$a->start_process();
if (poller_max_connections_reached()) {
// Are there fewer workers running as possible? Then fork a new one.
if (!Config::get("system", "worker_dont_fork") AND ($queues > ($active + 1)) AND ($entries > 1)) {
logger("Active workers: ".$active."/".$queues." Fork a new worker.", LOGGER_DEBUG);
- $args = array("php", "include/poller.php", "no_cron");
+ $args = array("include/poller.php", "no_cron");
$a = get_app();
$a->proc_run($args);
}
* @brief Call the front end worker
*/
function call_worker() {
- if (!Config::get("system", "frontend_worker") OR !Config::get("system", "worker")) {
+ if (!Config::get("system", "frontend_worker")) {
return;
}
* @brief Call the front end worker if there aren't any active
*/
function call_worker_if_idle() {
- if (!Config::get("system", "frontend_worker") OR !Config::get("system", "worker")) {
+ if (!Config::get("system", "frontend_worker")) {
return;
}
logger('Call poller', LOGGER_DEBUG);
- $args = array("php", "include/poller.php", "no_cron");
+ $args = array("include/poller.php", "no_cron");
$a = get_app();
$a->proc_run($args);
return;