Fix errors about uninitialized config during install
This commit is contained in:
parent
697f3e7876
commit
6b21689dcd
@ -88,6 +88,8 @@ function loadConfig() {
|
|||||||
$config[$key] = array();
|
$config[$key] = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require 'inc/config.php';
|
||||||
|
|
||||||
if (!file_exists('inc/instance-config.php'))
|
if (!file_exists('inc/instance-config.php'))
|
||||||
$error('Tinyboard is not configured! Create inc/instance-config.php.');
|
$error('Tinyboard is not configured! Create inc/instance-config.php.');
|
||||||
|
|
||||||
@ -112,8 +114,6 @@ function loadConfig() {
|
|||||||
init_locale($config['locale'], $error);
|
init_locale($config['locale'], $error);
|
||||||
}
|
}
|
||||||
|
|
||||||
require 'inc/config.php';
|
|
||||||
|
|
||||||
require 'inc/instance-config.php';
|
require 'inc/instance-config.php';
|
||||||
|
|
||||||
if (isset($board['dir']) && file_exists($board['dir'] . '/config.php')) {
|
if (isset($board['dir']) && file_exists($board['dir'] . '/config.php')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user