Skip to content

Commit 01074a6

Browse files
committed
Added missing variables in installer.
1 parent b5f64f6 commit 01074a6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ function request_language(){
115115
public function configure_database()
116116
{
117117
global $conf;
118+
118119
$cf = $conf['mysql']; // make $conf['mysql'] more accessible
119120
//** Create the database
120121
if(!$this->db->query('CREATE DATABASE IF NOT EXISTS '.$cf['database'])) {
@@ -147,6 +148,7 @@ public function configure_database()
147148
public function add_database_server_record() {
148149

149150
global $conf;
151+
150152
$cf = $conf['mysql']; // make $conf['mysql'] more accessible
151153

152154
if($cf['host'] == 'localhost') {
@@ -181,7 +183,9 @@ public function add_database_server_record() {
181183

182184
//** writes postfix configuration files
183185
private function process_postfix_config($configfile)
184-
{
186+
{
187+
global $conf;
188+
185189
$config_dir = $conf['postfix']['config_dir'].'/';
186190
$full_file_name = $config_dir.$configfile;
187191
//* Backup exiting file
@@ -199,7 +203,9 @@ private function process_postfix_config($configfile)
199203

200204
public function configure_jailkit()
201205
{
202-
$cf = $conf['jailkit'];
206+
global $conf;
207+
208+
$cf = $conf['jailkit'];
203209
$config_dir = $cf['config_dir'];
204210
$jk_init = $cf['jk_init'];
205211
$jk_chrootsh = $cf['jk_chrootsh'];

0 commit comments

Comments
 (0)