Include compatibility definitions earlier

This commit is contained in:
Trevor Slocum 2020-11-13 12:36:02 -08:00
parent 2a6c8c8dc3
commit b985ded3ee
1 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ if (!file_exists('settings.php')) {
fancyDie('Please copy the file settings.default.php to settings.php');
}
require 'settings.php';
require 'inc/defines.php';
if (!defined('TINYIB_LOCALE') || TINYIB_LOCALE == '') {
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) {
require $include;
}