projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
957a30a
)
fixed typo
author
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 6 Jan 2011 07:51:56 +0000 (08:51 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 6 Jan 2011 07:51:56 +0000 (08:51 +0100)
lib/Twig/Environment.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Environment.php
b/lib/Twig/Environment.php
index
4100640
..
52132b4
100644
(file)
--- a/
lib/Twig/Environment.php
+++ b/
lib/Twig/Environment.php
@@
-222,11
+222,7
@@
class Twig_Environment
*/
public function setCache($cache)
{
- if (!$this->cache) {
- $this->cache = false;
- }
-
- $this->cache = $cache;
+ $this->cache = $cache ? $cache : false;
}
/**