[Vtigercrm-commits] [vtiger-commits] r5369 - /vtigercrm/branches/4.2/include/utils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 25 18:24:45 EDT 2006
Author: allanbush
Date: Tue Apr 25 16:24:41 2006
New Revision: 5369
Log:
Caching currency information. Refs #744.
Modified:
vtigercrm/branches/4.2/include/utils.php
Modified: vtigercrm/branches/4.2/include/utils.php
==============================================================================
--- vtigercrm/branches/4.2/include/utils.php (original)
+++ vtigercrm/branches/4.2/include/utils.php Tue Apr 25 16:24:41 2006
@@ -4274,6 +4274,9 @@
function getDisplayCurrency()
{
+ static $disp_curr = '';
+ if($disp_curr) return $disp_curr;
+
global $adb;
$sql1 = "select * from currency_info";
$result = $adb->query($sql1);
@@ -4285,6 +4288,9 @@
function getCurrencySymbol()
{
+ static $curr_symbol = '';
+ if($curr_symbol) return $curr_symbol;
+
global $adb;
$sql1 = "select * from currency_info";
$result = $adb->query($sql1);
More information about the vtigercrm-commits
mailing list