diff --git a/include/cronhooks.php b/include/cronhooks.php index 096e10b718..15d49fe547 100644 --- a/include/cronhooks.php +++ b/include/cronhooks.php @@ -24,9 +24,6 @@ function cronhooks_run(&$argv, &$argc){ load_config('config'); load_config('system'); - if ($hostname = get_config('system', 'hostname')) - $a->set_hostname($hostname); - $lockpath = get_config('system','lockpath'); if ($lockpath != '') { $pidfile = new pidfile($lockpath, 'cron.lck'); diff --git a/include/delivery.php b/include/delivery.php index 515f286e0f..d89cded9eb 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -27,9 +27,6 @@ function delivery_run(&$argv, &$argc){ load_config('config'); load_config('system'); - if ($hostname = get_config('system', 'hostname')) - $a->set_hostname($hostname); - load_hooks(); if($argc < 3) diff --git a/include/expire.php b/include/expire.php index fe1007efd5..a73272a2ef 100644 --- a/include/expire.php +++ b/include/expire.php @@ -25,9 +25,6 @@ function expire_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')); diff --git a/include/gprobe.php b/include/gprobe.php index 00a8e562af..0cf32e95fe 100644 --- a/include/gprobe.php +++ b/include/gprobe.php @@ -24,9 +24,6 @@ function gprobe_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();