X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FLogging%2FReportDetail.php;h=3f0b4229e90142edab9cec7ec8a4595177e43bec;hb=bed983430218b8ec5be970ba52fa7300142565d3;hp=489eb3c1b5aee479785424be9b28340a0325d4c4;hpb=5552f12522cb2481ce8f8ccf028148084367237f;p=civicrm-core.git diff --git a/CRM/Logging/ReportDetail.php b/CRM/Logging/ReportDetail.php index 489eb3c1b5..3f0b4229e9 100644 --- a/CRM/Logging/ReportDetail.php +++ b/CRM/Logging/ReportDetail.php @@ -70,25 +70,24 @@ class CRM_Logging_ReportDetail extends CRM_Report_Form { parent::__construct(); CRM_Utils_System::resetBreadCrumb(); - $breadcrumb = + $breadcrumb = array( array( - array( - 'title' => ts('Home'), - 'url' => CRM_Utils_System::url() - ), - array( - 'title' => ts('CiviCRM'), - 'url' => CRM_Utils_System::url('civicrm', 'reset=1') - ), - array( - 'title' => ts('View Contact'), - 'url' => CRM_Utils_System::url('civicrm/contact/view', "reset=1&cid={$this->cid}") - ), - array( - 'title' => ts('Search Results'), - 'url' => CRM_Utils_System::url('civicrm/contact/search', "force=1") - ), - ); + 'title' => ts('Home'), + 'url' => CRM_Utils_System::url(), + ), + array( + 'title' => ts('CiviCRM'), + 'url' => CRM_Utils_System::url('civicrm', 'reset=1'), + ), + array( + 'title' => ts('View Contact'), + 'url' => CRM_Utils_System::url('civicrm/contact/view', "reset=1&cid={$this->cid}"), + ), + array( + 'title' => ts('Search Results'), + 'url' => CRM_Utils_System::url('civicrm/contact/search', "force=1"), + ), + ); CRM_Utils_System::appendBreadCrumb($breadcrumb); if (CRM_Utils_Request::retrieve('revert', 'Boolean', CRM_Core_DAO::$_nullObject)) { @@ -105,7 +104,7 @@ class CRM_Logging_ReportDetail extends CRM_Report_Form { // make sure the report works even without the params if (!$this->log_conn_id or !$this->log_date) { - $dao = new CRM_Core_DAO; + $dao = new CRM_Core_DAO(); $dao->query("SELECT log_conn_id, log_date FROM `{$this->db}`.log_{$this->tables[0]} WHERE log_action = 'Update' ORDER BY log_date DESC LIMIT 1"); $dao->fetch(); $this->log_conn_id = $dao->log_conn_id;