]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - common.php
Setup major reshuffle: split up in pre-auth: backend & user creation, and
[irc/unrealircd/unrealircd-webpanel.git] / common.php
index fd73bddbc0d76796e0601add7e68d4fdfeeb0106..620d7a06b49ee6cd8de677ee03b11ab5268b6b8b 100644 (file)
@@ -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"     => "",