redoing the change concerning the hostname.

This commit is contained in:
Michael Vogel 2013-08-12 11:09:11 +02:00
parent 61020cf174
commit ed33d28e61
6 changed files with 0 additions and 18 deletions

View file

@ -24,9 +24,6 @@ function cli_startup() {
load_config('config');
load_config('system');
if ($hostname = get_config('system', 'hostname'))
$a->set_hostname($hostname);
$a->set_baseurl(get_config('system','url'));
load_hooks();

View file

@ -65,9 +65,6 @@ function notifier_run(&$argv, &$argc){
load_config('config');
load_config('system');
if ($hostname = get_config('system', 'hostname'))
$a->set_hostname($hostname);
load_hooks();
if($argc < 3)

View file

@ -37,9 +37,6 @@ function onepoll_run(&$argv, &$argc){
load_config('config');
load_config('system');
if ($hostname = get_config('system', 'hostname'))
$a->set_hostname($hostname);
$a->set_baseurl(get_config('system','url'));
load_hooks();

View file

@ -30,9 +30,6 @@ function poller_run(&$argv, &$argc){
load_config('config');
load_config('system');
if ($hostname = get_config('system', 'hostname'))
$a->set_hostname($hostname);
$maxsysload = intval(get_config('system','maxloadavg'));
if($maxsysload < 1)
$maxsysload = 50;

View file

@ -25,9 +25,6 @@ function queue_run(&$argv, &$argc){
load_config('config');
load_config('system');
if ($hostname = get_config('system', 'hostname'))
$a->set_hostname($hostname);
$a->set_baseurl(get_config('system','url'));
load_hooks();

View file

@ -53,9 +53,6 @@ if(!$install) {
load_config('config');
load_config('system');
if ($hostname = get_config('system', 'hostname'))
$a->set_hostname($hostname);
require_once("include/session.php");
load_hooks();
call_hooks('init_1');