From b2e838f45193f6ab300bd1c480cd030e3870048c Mon Sep 17 00:00:00 2001 From: mn-martin Date: Wed, 4 Nov 2015 11:24:51 +0100 Subject: [PATCH] Fix: open_basedir restriction Plugin activation results on some setups in following error: Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/xxx/:/tmp) in /xxx/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 93 This can be easily fixed applying this simple change. --- Herbert/Framework/Providers/TwigServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Herbert/Framework/Providers/TwigServiceProvider.php b/Herbert/Framework/Providers/TwigServiceProvider.php index beb4afb..cce2573 100644 --- a/Herbert/Framework/Providers/TwigServiceProvider.php +++ b/Herbert/Framework/Providers/TwigServiceProvider.php @@ -20,7 +20,7 @@ public function register() { $this->app->singleton('twig.loader', function () { - $loader = new Twig_Loader_Filesystem('/'); + $loader = new Twig_Loader_Filesystem(); foreach ($this->app->getPlugins() as $plugin) {