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