Compare commits

..

No commits in common. "f22c255a0baa3fe316c78b4b602801949fdc6c9e" and "07032baa0d6d89585eda16c8cc224f154fca8f89" have entirely different histories.

2 changed files with 16 additions and 6 deletions

View file

@ -1,13 +1,18 @@
<?php
require_once '/usr/share/php/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;
public static function init() {
$loader = new Twig\Loader\FilesystemLoader('tpl/mail');
self::$twig = new Twig\Environment($loader, array(
$loader = new Twig_Loader_Filesystem('tpl/mail');
self::$twig = new Twig_Environment($loader, array(
'cache' => false
));

View file

@ -1,6 +1,11 @@
<?php
require_once '/usr/share/php/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();
@ -9,8 +14,8 @@ class PageController {
public static function init(LdapServer $server=NULL) {
self::$server = $server;
$loader = new Twig\Loader\FilesystemLoader('tpl/page');
self::$twig = new Twig\Environment($loader, array(
$loader = new Twig_Loader_Filesystem('tpl/page');
self::$twig = new Twig_Environment($loader, array(
'cache' => false
));