Skip to content

Commit

Permalink
Added resources path in system/vendor as per MB
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed May 20, 2024
1 parent 1556e29 commit 04c039b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions upload/system/vendor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

0 comments on commit 04c039b

Please sign in to comment.