From: fabien Date: Sat, 10 Oct 2009 13:57:11 +0000 (+0000) Subject: added a prefix to the temp directory X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=1ccdb19a8537c4edf60d4b40c6564121c02c904a;p=konrad%2Ftwig.git added a prefix to the temp directory git-svn-id: http://svn.twig-project.org/trunk@18 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- diff --git a/lib/Twig/Loader.php b/lib/Twig/Loader.php index 924e667..8bf8804 100644 --- a/lib/Twig/Loader.php +++ b/lib/Twig/Loader.php @@ -39,7 +39,7 @@ abstract class Twig_Loader implements Twig_LoaderInterface */ public function __construct($cache = null, $autoReload = true) { - $this->cache = null === $cache ? sys_get_temp_dir().DIRECTORY_SEPARATOR.md5(dirname(__FILE__)) : $cache; + $this->cache = null === $cache ? sys_get_temp_dir().DIRECTORY_SEPARATOR.'twig_'.md5(dirname(__FILE__)) : $cache; if (false !== $this->cache && !is_dir($this->cache)) {