optimization

This commit is contained in:
Uwe Tews
2015-07-12 02:26:42 +02:00
parent 878724c4ea
commit 21e07daf6d

View File

@@ -172,10 +172,8 @@ class Smarty_Internal_Resource_File extends Smarty_Resource
if ($source->exists) {
return file_get_contents($source->filepath);
}
if ($source instanceof Smarty_Template_Config) {
throw new SmartyException("Unable to read config {$source->type} '{$source->name}'");
}
throw new SmartyException("Unable to read template {$source->type} '{$source->name}'");
throw new SmartyException('Unable to read ' . ($source->isConfig ? 'config' : 'template') .
" {$source->type} '{$source->name}'");
}
/**