From 04c039b88b3ced573bd0e24970687e8a7d9ac55f Mon Sep 17 00:00:00 2001 From: TheCartpenter Date: Mon, 20 May 2024 19:29:48 -0400 Subject: [PATCH] Added resources path in system/vendor as per MB --- upload/system/vendor.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/upload/system/vendor.php b/upload/system/vendor.php index df8ba8c59..43e98c434 100644 --- a/upload/system/vendor.php +++ b/upload/system/vendor.php @@ -60,3 +60,15 @@ // twig/twig $autoloader->register('Twig', DIR_STORAGE . 'vendor/twig/twig/src/', true); +if (is_file(DIR_STORAGE . 'vendor/twig/twig/src/Resources/core.php')) { + require_once(DIR_STORAGE . 'vendor/twig/twig/src/Resources/core.php'); +} +if (is_file(DIR_STORAGE . 'vendor/twig/twig/src/Resources/debug.php')) { + require_once(DIR_STORAGE . 'vendor/twig/twig/src/Resources/debug.php'); +} +if (is_file(DIR_STORAGE . 'vendor/twig/twig/src/Resources/escaper.php')) { + require_once(DIR_STORAGE . 'vendor/twig/twig/src/Resources/escaper.php'); +} +if (is_file(DIR_STORAGE . 'vendor/twig/twig/src/Resources/string_loader.php')) { + require_once(DIR_STORAGE . 'vendor/twig/twig/src/Resources/string_loader.php'); +}