diff --git a/src/Smarty.php b/src/Smarty.php index c8e7f548..0f6ee0ce 100644 --- a/src/Smarty.php +++ b/src/Smarty.php @@ -1339,7 +1339,7 @@ class Smarty extends \Smarty\TemplateBase { } $_filepath = (string)$_file; if ($_file->isDir()) { - if (!$_file->isDot()) { + if (!$_compile->isDot()) { // delete folder if empty @rmdir($_file->getPathname()); }