Revision 1938
Added by darkviper almost 11 years ago
Chain.php | ||
---|---|---|
12 | 12 |
/** |
13 | 13 |
* Loads templates from other loaders. |
14 | 14 |
* |
15 |
* @package twig |
|
16 |
* @author Fabien Potencier <fabien@symfony.com> |
|
15 |
* @author Fabien Potencier <fabien@symfony.com> |
|
17 | 16 |
*/ |
18 | 17 |
class Twig_Loader_Chain implements Twig_LoaderInterface, Twig_ExistsLoaderInterface |
19 | 18 |
{ |
... | ... | |
77 | 76 |
} |
78 | 77 |
|
79 | 78 |
foreach ($this->loaders as $loader) { |
80 |
if ($loader instanceof Twig_ExistsLoaderInterface && $loader->exists($name)) { |
|
81 |
return $this->hasSourceCache[$name] = true; |
|
79 |
if ($loader instanceof Twig_ExistsLoaderInterface) { |
|
80 |
if ($loader->exists($name)) { |
|
81 |
return $this->hasSourceCache[$name] = true; |
|
82 |
} |
|
83 |
|
|
84 |
continue; |
|
82 | 85 |
} |
83 | 86 |
|
84 | 87 |
try { |
Also available in: Unified diff
update Twig template engine to version 1.13.1