From b985ded3eec589571e84fc8654269d8d8bb37919 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Fri, 13 Nov 2020 12:36:02 -0800 Subject: [PATCH] Include compatibility definitions earlier --- imgboard.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imgboard.php b/imgboard.php index 94e231b..366f638 100644 --- a/imgboard.php +++ b/imgboard.php @@ -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; }