projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #15595 from eileenmcnaughton/dedupe3
[civicrm-core.git]
/
CRM
/
Contribute
/
Page
/
DashBoard.php
diff --git
a/CRM/Contribute/Page/DashBoard.php
b/CRM/Contribute/Page/DashBoard.php
index 920a0c03256aa1a5ac7b1d0b156a878d94faaaee..161a7b5aad12d65a38a176811b284330eef95766 100644
(file)
--- a/
CRM/Contribute/Page/DashBoard.php
+++ b/
CRM/Contribute/Page/DashBoard.php
@@
-3,7
+3,7
@@
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-20
18
|
+ | Copyright CiviCRM LLC (c) 2004-20
20
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-28,7
+28,7
@@
/**
*
* @package CRM
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-20
18
+ * @copyright CiviCRM LLC (c) 2004-20
20
*/
/**
*/
/**
@@
-44,18
+44,18
@@
class CRM_Contribute_Page_DashBoard extends CRM_Core_Page {
public function preProcess() {
CRM_Utils_System::setTitle(ts('CiviContribute'));
public function preProcess() {
CRM_Utils_System::setTitle(ts('CiviContribute'));
- $status =
array('Valid', 'Cancelled')
;
- $prefixes =
array('start', 'month', 'year')
;
+ $status =
['Valid', 'Cancelled']
;
+ $prefixes =
['start', 'month', 'year']
;
$startDate = NULL;
$startDate = NULL;
- $startToDate = $monthToDate = $yearToDate =
array()
;
+ $startToDate = $monthToDate = $yearToDate =
[]
;
//get contribution dates.
$dates = CRM_Contribute_BAO_Contribution::getContributionDates();
//get contribution dates.
$dates = CRM_Contribute_BAO_Contribution::getContributionDates();
- foreach (
array(
-
'now',
-
'yearDate',
-
'monthDate',
-
)
as $date) {
+ foreach (
[
+ 'now',
+ 'yearDate',
+ 'monthDate',
+
]
as $date) {
$$date = $dates[$date];
}
// fiscal years end date
$$date = $dates[$date];
}
// fiscal years end date
@@
-108,7
+108,7
@@
class CRM_Contribute_Page_DashBoard extends CRM_Core_Page {
$this->preProcess();
$controller = new CRM_Core_Controller_Simple('CRM_Contribute_Form_Search',
$this->preProcess();
$controller = new CRM_Core_Controller_Simple('CRM_Contribute_Form_Search',
- ts('Contributions'),
CRM_Core_Action::BROWSE
+ ts('Contributions'),
NULL
);
$controller->setEmbedded(TRUE);
);
$controller->setEmbedded(TRUE);