mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
bug #2043 Fix load cache (MaCroTux)
This PR was squashed before being merged into the 1.x branch (closes #2043).
Discussion
----------
Fix load cache
In PHP7 @ do not works and it is resource expensive, switching to if statement.
Commits
-------
b5df3d1 Fix load cache
This commit is contained in:
@@ -46,7 +46,7 @@ class Twig_Cache_Filesystem implements Twig_CacheInterface
|
||||
*/
|
||||
public function load($key)
|
||||
{
|
||||
@include_once $key;
|
||||
if (file_exists($key)) @include_once $key;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user