Compare commits
5 commits
a2f0eada6f
...
d76d3e7596
Author | SHA1 | Date | |
---|---|---|---|
d76d3e7596 | |||
3e3ca1cd40 | |||
f22c255a0b | |||
0257f25e92 | |||
2d312b605a |
7
debian/changelog
vendored
7
debian/changelog
vendored
|
@ -1,3 +1,10 @@
|
|||
evoadmin-mail (1.0.10-1) unstable; urgency=medium
|
||||
|
||||
* Force system dependencies loading
|
||||
* php-twig is psr-4 only since Bookworm
|
||||
|
||||
-- David Prévot <dprevot@evolix.fr> Tue, 13 Feb 2024 11:20:16 +0100
|
||||
|
||||
evoadmin-mail (1.0.9-2) unstable; urgency=medium
|
||||
|
||||
[ William Hirigoyen ]
|
||||
|
|
|
@ -1,18 +1,13 @@
|
|||
<?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();
|
||||
}
|
||||
require_once '/usr/share/php/Twig/autoload.php';
|
||||
|
||||
class MailNotify {
|
||||
private static $twig, $adminmail;
|
||||
|
||||
public static function init() {
|
||||
$loader = new Twig_Loader_Filesystem('tpl/mail');
|
||||
self::$twig = new Twig_Environment($loader, array(
|
||||
$loader = new Twig\Loader\FilesystemLoader('tpl/mail');
|
||||
self::$twig = new Twig\Environment($loader, array(
|
||||
'cache' => false
|
||||
));
|
||||
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
<?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();
|
||||
}
|
||||
require_once '/usr/share/php/Twig/autoload.php';
|
||||
|
||||
class PageController {
|
||||
public static $alerts=array();
|
||||
|
@ -14,8 +9,8 @@ class PageController {
|
|||
public static function init(LdapServer $server=NULL) {
|
||||
self::$server = $server;
|
||||
|
||||
$loader = new Twig_Loader_Filesystem('tpl/page');
|
||||
self::$twig = new Twig_Environment($loader, array(
|
||||
$loader = new Twig\Loader\FilesystemLoader('tpl/page');
|
||||
self::$twig = new Twig\Environment($loader, array(
|
||||
'cache' => false
|
||||
));
|
||||
|
||||
|
|
Loading…
Reference in a new issue