From: Fabien Potencier Date: Tue, 14 Dec 2010 16:51:44 +0000 (+0100) Subject: simplified code X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=18b61008fd12ae2154946d7b3a96fab6f496698b;p=web%2Fkonrad%2Ftwig.git simplified code --- diff --git a/lib/Twig/Loader/Filesystem.php b/lib/Twig/Loader/Filesystem.php index 6ec0dfb..f623d25 100644 --- a/lib/Twig/Loader/Filesystem.php +++ b/lib/Twig/Loader/Filesystem.php @@ -102,7 +102,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface protected function findTemplate($name) { // normalize name - $name = preg_replace('#(/+|\\+)#', '/', str_replace('\\', '/', $name)); + $name = preg_replace('#[/\\\\]+#', '/', $name); $parts = explode('/', $name); $level = 0;