[Vtigercrm-commits] [vtiger-commits] r10815 - /vtigercrm/branches/5.0.3/modules/Settings/EditInventoryNotification.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Apr 30 04:39:48 EDT 2007


Author: saraj
Date: Mon Apr 30 02:39:43 2007
New Revision: 10815

Log:
added UTF-8 supprot in inventory notification body

Modified:
    vtigercrm/branches/5.0.3/modules/Settings/EditInventoryNotification.php

Modified: vtigercrm/branches/5.0.3/modules/Settings/EditInventoryNotification.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Settings/EditInventoryNotification.php (original)
+++ vtigercrm/branches/5.0.3/modules/Settings/EditInventoryNotification.php Mon Apr 30 02:39:43 2007
@@ -10,12 +10,13 @@
  ********************************************************************************/
 
 require_once('Smarty_setup.php');
+require_once('config.php');
 global $mod_strings;
 global $app_strings;
 global $app_list_strings;
 
 global $adb;
-global $theme;
+global $theme,$default_charset;
 $theme_path="themes/".$theme."/";
 $image_path=$theme_path."images/";
 require_once($theme_path.'layout_utils.php');
@@ -30,7 +31,7 @@
 	{
 		$label = $mod_strings[$adb->query_result($result,0,'notificationname')];
 		$notification_subject = $adb->query_result($result,0,'notificationsubject');
-		$notification_body = $adb->query_result($result,0,'notificationbody');
+		$notification_body = iconv("UTF-8",$default_charset,$adb->query_result($result,0,'notificationbody'));
 		$notification_id = $adb->query_result($result,0,'notificationid');
 
 		$notification = Array();





More information about the vtigercrm-commits mailing list