From 67f8a3edd83cefb5002ae145fbf6fadbfdd03223 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Mon, 2 Mar 2020 11:28:56 -0500 Subject: [PATCH] remove unused parameter --- CRM/Case/Audit/Audit.php | 17 ++++++----------- CRM/Case/XMLProcessor/Report.php | 2 +- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/CRM/Case/Audit/Audit.php b/CRM/Case/Audit/Audit.php index be04913b84f4..d2809f140669 100644 --- a/CRM/Case/Audit/Audit.php +++ b/CRM/Case/Audit/Audit.php @@ -215,25 +215,20 @@ public function compareActivities($a, $b) { * @param string $xmlString * @param int $clientID * @param int $caseID - * @param bool $printReport * * @return mixed */ - public static function run($xmlString, $clientID, $caseID, $printReport = FALSE) { + public static function run($xmlString, $clientID, $caseID) { $audit = new CRM_Case_Audit_Audit($xmlString, 'audit.conf.xml'); - $activities = $audit->getActivities($printReport); + $activities = $audit->getActivities(TRUE); $template = CRM_Core_Smarty::singleton(); $template->assign_by_ref('activities', $activities); - if ($printReport) { - $reportDate = CRM_Utils_Date::customFormat(date('Y-m-d H:i')); - $template->assign('reportDate', $reportDate); - $contents = $template->fetch('CRM/Case/Audit/Report.tpl'); - } - else { - $contents = $template->fetch('CRM/Case/Audit/Audit.tpl'); - } + $reportDate = CRM_Utils_Date::customFormat(date('Y-m-d H:i')); + $template->assign('reportDate', $reportDate); + $contents = $template->fetch('CRM/Case/Audit/Report.tpl'); + return $contents; } diff --git a/CRM/Case/XMLProcessor/Report.php b/CRM/Case/XMLProcessor/Report.php index 453f39ecf965..b69dc14ea047 100644 --- a/CRM/Case/XMLProcessor/Report.php +++ b/CRM/Case/XMLProcessor/Report.php @@ -963,7 +963,7 @@ public static function printCaseReport() { $params, $report ); - $printReport = CRM_Case_Audit_Audit::run($contents, $clientID, $caseID, TRUE); + $printReport = CRM_Case_Audit_Audit::run($contents, $clientID, $caseID); echo $printReport; CRM_Utils_System::civiExit(); }