[Vtigercrm-commits] [vtiger-commits] r5973 - in /vtigercrm/trunk/modules/Faq: DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 15 03:25:06 EDT 2006
Author: saraj
Date: Mon May 15 01:24:59 2006
New Revision: 5973
Log:
i18n done for module name in Detail/Edit/Relatedlistview - ahmed
Modified:
vtigercrm/trunk/modules/Faq/DetailView.php
vtigercrm/trunk/modules/Faq/EditView.php
Modified: vtigercrm/trunk/modules/Faq/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Faq/DetailView.php (original)
+++ vtigercrm/trunk/modules/Faq/DetailView.php Mon May 15 01:24:59 2006
@@ -28,6 +28,7 @@
global $mod_strings;
global $app_strings;
+global $currentModule;
$focus = new Faq();
@@ -68,9 +69,9 @@
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
-$smarty->assign("BLOCKS", getBlocks("Faq","detail_view",'',$focus->column_fields));
-$smarty->assign("SINGLE_MOD","Faq");
-$smarty->assign("MODULE","Faq");
+$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
+$smarty->assign("SINGLE_MOD",$currentModule);
+$smarty->assign("MODULE",$currentModule);
$smarty->assign("ID", $_REQUEST['record']);
if(isPermitted("Faq","EditView",$_REQUEST['record']) == 'yes')
Modified: vtigercrm/trunk/modules/Faq/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Faq/EditView.php (original)
+++ vtigercrm/trunk/modules/Faq/EditView.php Mon May 15 01:24:59 2006
@@ -30,6 +30,7 @@
global $app_strings;
global $mod_strings;
global $current_user;
+global $currentModule;
$focus = new Faq();
$smarty = new vtigerCRM_Smarty();
@@ -54,16 +55,16 @@
$disp_view = getView($focus->mode);
if($disp_view == 'edit_view')
- $smarty->assign("BLOCKS",getBlocks("Faq",$disp_view,$mode,$focus->column_fields));
+ $smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
else
{
- $smarty->assign("BASBLOCKS",getBlocks("Faq",$disp_view,$mode,$focus->column_fields,'BAS'));
+ $smarty->assign("BASBLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields,'BAS'));
}
$smarty->assign("OP_MODE",$disp_view);
-$smarty->assign("MODULE","Faq");
-$smarty->assign("SINGLE_MOD","Faq");
+$smarty->assign("MODULE",$currentModule);
+$smarty->assign("SINGLE_MOD",$currentModule);
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
More information about the vtigercrm-commits
mailing list