From 4a19458c158f9e28b23bf9b1c8dbe77ae8e88470 Mon Sep 17 00:00:00 2001 From: slawkens1 Date: Sun, 8 Oct 2017 18:24:35 +0200 Subject: [PATCH] * moved functions declaration a bit upper, so it can use str_replace_first --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 07c2a8d6..ae2516dc 100644 --- a/index.php +++ b/index.php @@ -39,6 +39,8 @@ if(file_exists(BASE . 'install') && (!isset($config['installed']) || !$config['i die('Setup detected that install/ directory exists. Please visit this url to start MyAAC Installation.
Delete install/ directory if you already installed MyAAC.
Remember to REFRESH this page when you\'re done!'); } +require_once(SYSTEM . 'functions.php'); + $uri = $_SERVER['REQUEST_URI']; if(!empty(BASE_DIR)) $uri = str_replace(BASE_DIR . '/', '', $uri); @@ -127,7 +129,6 @@ define('PAGE', $page); $template_place_holders = array(); -require_once(SYSTEM . 'functions.php'); require_once(SYSTEM . 'init.php'); require_once(SYSTEM . 'login.php'); require_once(SYSTEM . 'status.php');