[TEP-COMMIT] CVS: catalog/catalog/includes application_top.php,1.282,1.283

Harald Ponce de Leon <[email protected]>
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Update of /cvsroot/tep/catalog/catalog/includes
In directory sc8-pr-cvs1:/tmp/cvs-serv10016/catalog/includes

Modified Files:
	application_top.php 
Log Message:
update the currencies class

* $currencies -> $osC_Currencies

* $currencies->display_price() -> $osC_Currencies->displayPrice()
  +-- now passes the product tax class id as a parameter instead of the
      product tax rate value (saves queries when DISPLAY_PRICES_WITH_TAX
      is disabled)

* $currencies->is_set()
  +-- removed due to $osC_Currencies->exists()

* $currencies->get_decimal_places() -> $osC_Currencies->decimalPlaces()

* $currencies->get_value() -> $osC_Currencies->value()

* $osC_Currencies->format()
  +-- removed $calculate_currency_value (second) parameter due to
      redundancy - if the number should not be calculated with the currency
      rate, a value of '1' should be passed as the currency rate value


Index: application_top.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/application_top.php,v
retrieving revision 1.282
retrieving revision 1.283
diff -u -d -r1.282 -r1.283
--- application_top.php	17 Nov 2003 21:39:36 -0000	1.282
+++ application_top.php	18 Dec 2003 23:52:14 -0000	1.283
@@ -230,7 +230,7 @@
 
 // include currencies class and create an instance
   require(DIR_WS_CLASSES . 'currencies.php');
-  $currencies = new currencies();
+  $osC_Currencies = new osC_Currencies();
 
 // include the mail classes
   require(DIR_WS_CLASSES . 'mime.php');
@@ -256,7 +256,7 @@
 
 // currency
   if (($osC_Session->exists('currency') == false) || isset($_GET['currency']) || ( (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') && (LANGUAGE_CURRENCY != $osC_Session->value('currency')) ) ) {
-    if (isset($_GET['currency']) && $currencies->exists($_GET['currency'])) {
+    if (isset($_GET['currency']) && $osC_Currencies->exists($_GET['currency'])) {
       $currency = $_GET['currency'];
     } else {
       $currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY;



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.