|
@@ -28,8 +28,9 @@ |
|
|
block discarded – undo |
|
28
|
28
|
// Instantiate and add Slim specific extension |
|
29
|
29
|
$basePath = rtrim(str_ireplace('index.php', '', $container['request']->getUri()->getBasePath()), '/'); |
|
30
|
30
|
$view->addExtension(new Slim\Views\TwigExtension($container['router'], $basePath)); |
|
31
|
|
- if($settings['debug'] == true) |
|
32
|
|
- $view->addExtension(new \Twig_Extension_Debug()); |
|
|
31
|
+ if($settings['debug'] == true) { |
|
|
32
|
+ $view->addExtension(new \Twig_Extension_Debug()); |
|
|
33
|
+ } |
|
33
|
34
|
|
|
34
|
35
|
return $view; |
|
35
|
36
|
}; |
Please login to merge, or discard this patch.