minor tidy ups. Don't pass param as reference if not altered
authorEileen McNaughton <eileen@fuzion.co.nz>
Sat, 4 Apr 2015 06:34:10 +0000 (19:34 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sat, 4 Apr 2015 06:34:10 +0000 (19:34 +1300)
CRM/Event/Form/EventFees.php
CRM/Price/BAO/PriceSet.php

index 5ac257e2a6d5739832def2bcaef0f7a67dd07f09..6eb0b51ad7066630d64a4726a988afe75f7d983b 100644 (file)
@@ -61,8 +61,7 @@ class CRM_Event_Form_EventFees {
     if ($form->_eventId &&
       ($currency = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $form->_eventId, 'currency'))
     ) {
-      $config = CRM_Core_Config::singleton();
-      $config->defaultCurrency = $currency;
+      CRM_Core_Config::singleton()->defaultCurrency = $currency;
     }
   }
 
index 6371a749f5bbd34902e1af7912907d9693814f35..338726928acbb02d8888fc847af46d71919f8f00 100644 (file)
@@ -713,7 +713,7 @@ WHERE  id = %1";
    * @param $lineItem
    * @param string $component
    */
-  public static function processAmount(&$fields, &$params, &$lineItem, $component = '') {
+  public static function processAmount($fields, &$params, &$lineItem, $component = '') {
     // using price set
     $totalPrice = $totalTax = 0;
     $radioLevel = $checkboxLevel = $selectLevel = $textLevel = array();