Skip to content

Commit dfc10a5

Browse files
author
hanseartic
committed
Make the autoloader only work the mustache-directory.
1 parent 4a70fc1 commit dfc10a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Views/Mustache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Mustache extends \Slim\View
5959
public function render($template)
6060
{
6161
require_once self::$mustacheDirectory . '/Autoloader.php';
62-
\Mustache_Autoloader::register();
62+
\Mustache_Autoloader::register(dirname(self::$mustacheDirectory));
6363
$m = new \Mustache_Engine();
6464
$contents = file_get_contents($this->getTemplatesDirectory() . '/' . ltrim($template, '/'));
6565
return $m->render($contents, $this->data);

0 commit comments

Comments
 (0)