diff --git a/CRM/Financial/Page/FinancialBatch.php b/CRM/Financial/Page/FinancialBatch.php index 340d6a5250c0..9bc1a69c6e14 100644 --- a/CRM/Financial/Page/FinancialBatch.php +++ b/CRM/Financial/Page/FinancialBatch.php @@ -72,7 +72,7 @@ public function run() { ) { $this->edit($this->_action, $id); } - $this->assign('financialAJAXQFKey', CRM_Core_Key::get('CRM_Financial_Page_AJAX')) + $this->assign('financialAJAXQFKey', CRM_Core_Key::get('CRM_Financial_Page_AJAX')); // parent run return CRM_Core_Page::run(); } diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index b8e481b8326d..1b5be8950fe1 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -137,7 +137,7 @@ public static function cleanDir(string $target, bool $rmdir = TRUE, bool $verbos } } elseif (is_dir($object)) { - CRM_Utils_File::cleanDir($object, TRUE, $verbose); + CRM_Utils_File::cleanDir($object, $rmdir, $verbose); } elseif (is_file($object)) { CRM_Utils_File::try_unlink($object, "file");