Replace fancy $$varname with actual varnames, to be nice to the IDE.
authorAndreas Hennings <andreas@dqxtech.net>
Tue, 11 Feb 2014 14:21:03 +0000 (15:21 +0100)
committerAndreas Hennings <andreas@dqxtech.net>
Tue, 11 Feb 2014 14:21:03 +0000 (15:21 +0100)
CRM/Contribute/Page/ContributionPage.php

index ad21d501bf40f9d614a862ef2fbac14d0787305f..67d50e8f97a629e6e818d5f19cd850613dc9424e 100644 (file)
@@ -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';