Fix Twig loading on PHP 5.6
This commit is contained in:
parent
b4b23dfb09
commit
bbd55a2e67
|
@ -1,6 +1,11 @@
|
|||
<?php
|
||||
|
||||
require_once 'Twig/autoload.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';
|
||||
Twig_Autoloader::register();
|
||||
}
|
||||
|
||||
class MailNotify {
|
||||
private static $twig, $adminmail;
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
<?php
|
||||
|
||||
require_once 'Twig/autoload.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';
|
||||
Twig_Autoloader::register();
|
||||
}
|
||||
|
||||
class PageController {
|
||||
public static $alerts=array();
|
||||
|
|
Loading…
Reference in New Issue