mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
optimization
This commit is contained in:
@@ -172,10 +172,8 @@ class Smarty_Internal_Resource_File extends Smarty_Resource
|
|||||||
if ($source->exists) {
|
if ($source->exists) {
|
||||||
return file_get_contents($source->filepath);
|
return file_get_contents($source->filepath);
|
||||||
}
|
}
|
||||||
if ($source instanceof Smarty_Template_Config) {
|
throw new SmartyException('Unable to read ' . ($source->isConfig ? 'config' : 'template') .
|
||||||
throw new SmartyException("Unable to read config {$source->type} '{$source->name}'");
|
" {$source->type} '{$source->name}'");
|
||||||
}
|
|
||||||
throw new SmartyException("Unable to read template {$source->type} '{$source->name}'");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user