Anomalie #1615 » 1615.patch
galette/includes/dependencies.php | ||
---|---|---|
DI\get('Slim\Views\Smarty')
|
||
);
|
||
$container->set('Slim\Views\Smarty', function (ContainerInterface $c) {
|
||
if (!defined('GALETTE_TPL_SUBDIR')) {
|
||
define(
|
||
'GALETTE_TPL_SUBDIR',
|
||
'templates/default/'
|
||
);
|
||
}
|
||
if (!defined('_CURRENT_THEME_PATH')) {
|
||
define(
|
||
'_CURRENT_THEME_PATH',
|
||
GALETTE_THEMES_PATH . 'default/'
|
||
);
|
||
}
|
||
if (!defined('GALETTE_THEME')) {
|
||
define(
|
||
'GALETTE_THEME',
|
||
'themes/default/'
|
||
);
|
||
}
|
||
$view = new \Slim\Views\Smarty(
|
||
rtrim(GALETTE_ROOT . GALETTE_TPL_SUBDIR, DIRECTORY_SEPARATOR),
|
||
[
|