mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- optimization resource extendsall
This commit is contained in:
@@ -25,7 +25,7 @@ class Smarty_Resource_Extendsall extends Smarty_Internal_Resource_Extends
|
|||||||
$exists = true;
|
$exists = true;
|
||||||
foreach ($source->smarty->getTemplateDir() as $key => $directory) {
|
foreach ($source->smarty->getTemplateDir() as $key => $directory) {
|
||||||
try {
|
try {
|
||||||
$s = Smarty_Resource::source(null, $source->smarty, '[' . $key . ']' . $source->name);
|
$s = Smarty_Template_Source::load(null, $source->smarty, '[' . $key . ']' . $source->name);
|
||||||
if (!$s->exists) {
|
if (!$s->exists) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user