Force system dependencies loading

This commit is contained in:
David Prevot 2024-02-13 10:00:14 +01:00
parent 65449431f9
commit 2d312b605a
2 changed files with 8 additions and 8 deletions

View file

@ -1,9 +1,9 @@
<?php
if (file_exists(stream_resolve_include_path('Twig/autoload.php'))) {
require_once 'Twig/autoload.php';
} elseif (stream_resolve_include_path(file_exists('Twig/Autoloader.php'))) {
require_once 'Twig/Autoloader.php';
if (file_exists(stream_resolve_include_path('/usr/share/php/Twig/autoload.php'))) {
require_once '/usr/share/php/Twig/autoload.php';
} elseif (stream_resolve_include_path(file_exists('/usr/share/php/Twig/Autoloader.php'))) {
require_once '/usr/share/php/Twig/Autoloader.php';
Twig_Autoloader::register();
}

View file

@ -1,9 +1,9 @@
<?php
if (file_exists(stream_resolve_include_path('Twig/autoload.php'))) {
require_once 'Twig/autoload.php';
} elseif (stream_resolve_include_path(file_exists('Twig/Autoloader.php'))) {
require_once 'Twig/Autoloader.php';
if (file_exists(stream_resolve_include_path('/usr/share/php/Twig/autoload.php'))) {
require_once '/usr/share/php/Twig/autoload.php';
} elseif (stream_resolve_include_path(file_exists('/usr/share/php/Twig/Autoloader.php'))) {
require_once '/usr/share/php/Twig/Autoloader.php';
Twig_Autoloader::register();
}