X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/311c294b018ad57aa6d13a0b63e025479e3c3632..54b9603ced28334eec94ec45aca67e7bdd0d2078:/common.php diff --git a/common.php b/common.php index fd73bdd..620d7a0 100644 --- a/common.php +++ b/common.php @@ -38,10 +38,7 @@ function read_config_file() { GLOBAL $config; - /* Load config defaults */ $config = Array(); - require_once UPATH . "/config/config.defaults.php"; - if (!file_exists(UPATH."/config/config.php") && file_exists(UPATH."/config.php")) { require_once UPATH . "/config.php"; @@ -191,7 +188,8 @@ require_once UPATH . "/plugins.php"; read_config_db(); /* And a check... */ -if (!get_config("base_url")) die("The base_url was not found in your config. Setup went wrong?"); +if (!page_requires_no_config() && !get_config("base_url")) + die("The base_url was not found in your config. Setup went wrong?"); $pages = [ "Overview" => "",