Fix naming of variables.

This commit is contained in:
Markus Birth 2016-07-10 16:24:03 +02:00
parent fa915324b4
commit 0d57aace4b

View File

@ -16,13 +16,13 @@ class GenericOutput
* @param string $templatesPath Path to templates. Must be a folder, no slash at end!
* @param string $partialsPath Path to partials (relative to $templatesPath). Must be a folder, no slash at end!
*/
public function __construct($templatesPrefix = 'templates', $partialsPrefix = 'partials')
public function __construct($templatesPath = 'templates', $partialsPath = 'partials')
{
$this->templatesPrefix = $templatesPrefix;
$this->partialsPrefix = $templatesPrefix . DIRECTORY_SEPARATOR . $partialsPrefix;
$this->templatesPath = $templatesPath;
$this->partialsPath = $templatesPath . DIRECTORY_SEPARATOR . $partialsPath;
$this->templateEngine = new \Mustache_Engine(array(
'loader' => new \Mustache_Loader_FilesystemLoader($this->templatesPrefix),
'partials_loader' => new \Mustache_Loader_FilesystemLoader($this->partialsPrefix),
'loader' => new \Mustache_Loader_FilesystemLoader($this->templatesPath),
'partials_loader' => new \Mustache_Loader_FilesystemLoader($this->partialsPath),
'charset' => 'utf-8',
'logger' => new \Mustache_Logger_StreamLogger('php://stderr'),
));