mirror of
https://github.com/smarty-php/smarty.git
synced 2025-07-31 08:27:14 +02:00
Fixed logic error in this changed if statement
This commit is contained in:
@ -73,7 +73,7 @@ class Smarty_Internal_Resource_File extends Smarty_Resource
|
|||||||
*/
|
*/
|
||||||
public function getContent(Smarty_Template_Source $source)
|
public function getContent(Smarty_Template_Source $source)
|
||||||
{
|
{
|
||||||
if (($source->smarty->compile_check && $source->exists)
|
if (($source->smarty->compile_check && !$source->exists)
|
||||||
|| false === ($content = file_get_contents($source->filepath))
|
|| false === ($content = file_get_contents($source->filepath))
|
||||||
) {
|
) {
|
||||||
throw new SmartyException(
|
throw new SmartyException(
|
||||||
|
Reference in New Issue
Block a user