From 8de614a6fe130561be5967c0df842ad8e9d7d0ee Mon Sep 17 00:00:00 2001 From: eliot-akira Date: Sun, 24 Nov 2024 13:28:19 +0100 Subject: [PATCH] Framework: Load Date module early since it has its own loader --- framework/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/index.php b/framework/index.php index 8113bb1..0f3d74f 100644 --- a/framework/index.php +++ b/framework/index.php @@ -9,6 +9,9 @@ class framework { framework::$state = (object) []; } +// Load Date module early since it has its own loader +require_once __DIR__ . '/date/index.php'; + (include __DIR__ . '/module-loader.php')(new class { public $name = 'tangible_framework'; @@ -26,7 +29,6 @@ function load() { require_once __DIR__ . '/admin/index.php'; require_once __DIR__ . '/ajax/index.php'; require_once __DIR__ . '/api/index.php'; - require_once __DIR__ . '/date/index.php'; require_once __DIR__ . '/format/index.php'; require_once __DIR__ . '/hjson/index.php'; require_once __DIR__ . '/interface/index.php';