[Vtigercrm-commits] [vtiger-commits] r4750 - /vtigercrm/trunk/include/utils/utils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 05:09:28 EST 2006


Author: richie
Date: Thu Mar 30 03:09:22 2006
New Revision: 4750

Log:
made facility to take data from file instead of db from 
the second instance onwards

Modified:
    vtigercrm/trunk/include/utils/utils.php

Modified: vtigercrm/trunk/include/utils/utils.php
==============================================================================
--- vtigercrm/trunk/include/utils/utils.php (original)
+++ vtigercrm/trunk/include/utils/utils.php Thu Mar 30 03:09:22 2006
@@ -742,12 +742,22 @@
 
 function getTabModuleName($tabid)
 {
+	if (file_exists('tabdata.php'))
+        {
+	global $log;
+        $log->info("the file exists");
+                include('tabdata.php');
+		$tabname = array_search($tabid,$tab_info_array);
+        }
+        else
+        {
 	global $log;
         $log->info("tab id is ".$tabid);
         global $adb;
         $sql = "select name from tab where tabid='".$tabid."'";
         $result = $adb->query($sql);
         $tabname=  $adb->query_result($result,0,"name");
+	}
         return $tabname;
 }
 





More information about the vtigercrm-commits mailing list