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('config');
load_config('system'); load_config('system');
if ($hostname = get_config('system', 'hostname'))
$a->set_hostname($hostname);
$a->set_baseurl(get_config('system','url')); $a->set_baseurl(get_config('system','url'));
load_hooks(); load_hooks();

View File

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

View File

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

View File

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

View File

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

View File

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