it's Configuration:: not self::

This commit is contained in:
flash 2015-03-08 06:58:39 +01:00
parent 0bf24ff19d
commit 6a2a1a01be

View file

@ -49,8 +49,8 @@ class Flashii {
private function initTwig($templateName = null, $templatesFolder = null) { private function initTwig($templateName = null, $templatesFolder = null) {
// Assign default values set in the configuration if $templateName and $templatesFolder are null // Assign default values set in the configuration if $templateName and $templatesFolder are null
$templateName = is_null($templateName) ? self::getLocalConfig('etc', 'design') : $templateName; $templateName = is_null($templateName) ? Configuration::getLocalConfig('etc', 'design') : $templateName;
$templatesFolder = is_null($templatesFolder) ? self::getLocalConfig('etc', 'templatesPath') : $templatesFolder; $templatesFolder = is_null($templatesFolder) ? Configuration::getLocalConfig('etc', 'templatesPath') : $templatesFolder;
// Initialise Twig Filesystem Loader // Initialise Twig Filesystem Loader
$twigLoader = new \Twig_Loader_Filesystem($templatesFolder . $templateName); $twigLoader = new \Twig_Loader_Filesystem($templatesFolder . $templateName);