Kaynağa Gözat

Modules updates.

AntonLV 9 yıl önce
ebeveyn
işleme
e4708f8f89

+ 0 - 4
modules/base/payment/classes/BxBaseModPaymentConfig.php

@@ -76,10 +76,6 @@ class BxBaseModPaymentConfig extends BxBaseModGeneralConfig
     	
     	$sPrefix = $this->getPrefix('options');
         $this->_iSiteId = (int)$this->_oDb->getParam($sPrefix . 'site_admin');
-
-        $aCurrencies = BxDolForm::getDataItems($this->CNF['OBJECT_FORM_PRELISTS_CURRENCIES'], false, BX_DATA_VALUES_ADDITIONAL);
-        $this->_sCurrencyCode = $this->_oDb->getParam($sPrefix . 'default_currency_code');
-        $this->_sCurrencySign = $aCurrencies[$this->_sCurrencyCode];
     }
 
     public function getSiteId()

+ 11 - 0
modules/boonex/payment/classes/BxPaymentConfig.php

@@ -110,6 +110,17 @@ class BxPaymentConfig extends BxBaseModPaymentConfig
         );
     }
 
+    public function init(&$oDb)
+    {
+        parent::init($oDb);
+
+        $sPrefix = $this->getPrefix('options');
+
+        $aCurrencies = BxDolForm::getDataItems($this->CNF['OBJECT_FORM_PRELISTS_CURRENCIES'], false, BX_DATA_VALUES_ADDITIONAL);
+        $this->_sCurrencyCode = $this->_oDb->getParam($sPrefix . 'default_currency_code');
+        $this->_sCurrencySign = $aCurrencies[$this->_sCurrencyCode];
+    }
+
 	public function getLicense()
     {
         list($fMilliSec, $iSec) = explode(' ', microtime());

+ 11 - 0
modules/boonex/payment/updates/9.0.2_9.0.3/source/classes/BxPaymentConfig.php

@@ -110,6 +110,17 @@ class BxPaymentConfig extends BxBaseModPaymentConfig
         );
     }
 
+    public function init(&$oDb)
+    {
+        parent::init($oDb);
+
+        $sPrefix = $this->getPrefix('options');
+
+        $aCurrencies = BxDolForm::getDataItems($this->CNF['OBJECT_FORM_PRELISTS_CURRENCIES'], false, BX_DATA_VALUES_ADDITIONAL);
+        $this->_sCurrencyCode = $this->_oDb->getParam($sPrefix . 'default_currency_code');
+        $this->_sCurrencySign = $aCurrencies[$this->_sCurrencyCode];
+    }
+
 	public function getLicense()
     {
         list($fMilliSec, $iSec) = explode(' ', microtime());