Require third party dependencies before requiring other files

This commit is contained in:
Daniel Saunders 2018-05-11 00:07:13 -04:00
parent 4a6bbbe667
commit 81ceabe744

View File

@ -13,6 +13,8 @@ define('TINYBOARD', null);
$microtime_start = microtime(true);
require_once 'vendor/autoload.php';
require_once 'inc/display.php';
require_once 'inc/template.php';
require_once 'inc/database.php';
@ -23,8 +25,6 @@ require_once 'inc/lock.php';
require_once 'inc/queue.php';
require_once 'inc/polyfill.php';
require_once 'vendor/autoload.php';
@include_once 'inc/lib/parsedown/Parsedown.php'; // fail silently, this isn't a critical piece of code
// the user is not currently logged in as a moderator