From 35959bc5f26d25d056446272545a74c897dd804d Mon Sep 17 00:00:00 2001 From: Andreas Hennings Date: Tue, 11 Feb 2014 15:21:03 +0100 Subject: [PATCH] Replace fancy $$varname with actual varnames, to be nice to the IDE. --- CRM/Contribute/Page/ContributionPage.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CRM/Contribute/Page/ContributionPage.php b/CRM/Contribute/Page/ContributionPage.php index ad21d501bf..67d50e8f97 100644 --- a/CRM/Contribute/Page/ContributionPage.php +++ b/CRM/Contribute/Page/ContributionPage.php @@ -228,10 +228,9 @@ class CRM_Contribute_Page_ContributionPage extends CRM_Core_Page { if (!isset(self::$_contributionLinks)) { //get contribution dates. $dates = CRM_Contribute_BAO_Contribution::getContributionDates(); - foreach (array( - 'now', 'yearDate', 'monthDate') as $date) { - $$date = $dates[$date]; - } + $now = $dates['now']; + $yearDate = $dates['yearDate']; + $monthDate = $dates['monthDate']; $yearNow = $yearDate + 10000; $urlString = 'civicrm/contribute/search'; -- 2.25.1