From adb5d4f1528f7983975bd27e10f83c4d0f5e5c40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Haso=C5=88?= Date: Wed, 26 Sep 2012 15:12:41 +0200 Subject: [PATCH] Fixed PHP 5.2 incompatibilty --- lib/Twig/Loader/Filesystem.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Twig/Loader/Filesystem.php b/lib/Twig/Loader/Filesystem.php index 4371c17..eb9c7cd 100644 --- a/lib/Twig/Loader/Filesystem.php +++ b/lib/Twig/Loader/Filesystem.php @@ -163,7 +163,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface $namespace = '__main__'; if (isset($name[0]) && '@' == $name[0]) { if (false === $pos = strpos($name, '/')) { - throw new \InvalidArgumentException(sprintf('Malformed namespaced template name "%s" (expecting "@namespace/template_name").', $name)); + throw new InvalidArgumentException(sprintf('Malformed namespaced template name "%s" (expecting "@namespace/template_name").', $name)); } $namespace = substr($name, 1, $pos - 1); @@ -172,7 +172,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface } if (!isset($this->paths[$namespace])) { - throw new \Twig_Error_Loader(sprintf('There are no registered paths for namespace "%s".', $namespace)); + throw new Twig_Error_Loader(sprintf('There are no registered paths for namespace "%s".', $namespace)); } foreach ($this->paths[$namespace] as $path) { -- 1.7.2.5