Include compatibility definitions earlier

This commit is contained in:
Trevor Slocum 2020-11-13 12:36:02 -08:00
parent 2a6c8c8dc3
commit b985ded3ee

View File

@ -52,6 +52,7 @@ if (!file_exists('settings.php')) {
fancyDie('Please copy the file settings.default.php to settings.php'); fancyDie('Please copy the file settings.default.php to settings.php');
} }
require 'settings.php'; require 'settings.php';
require 'inc/defines.php';
if (!defined('TINYIB_LOCALE') || TINYIB_LOCALE == '') { if (!defined('TINYIB_LOCALE') || TINYIB_LOCALE == '') {
function __($string) { function __($string) {
@ -183,7 +184,7 @@ foreach ($writedirs as $dir) {
} }
} }
$includes = array('inc/defines.php', 'inc/functions.php', 'inc/html.php', 'inc/database/' . TINYIB_DBMODE . '_link.php', 'inc/database/' . TINYIB_DBMODE . '.php'); $includes = array('inc/functions.php', 'inc/html.php', 'inc/database/' . TINYIB_DBMODE . '_link.php', 'inc/database/' . TINYIB_DBMODE . '.php');
foreach ($includes as $include) { foreach ($includes as $include) {
require $include; require $include;
} }