[Vtigercrm-commits] [vtiger-commits] r10716 - /vtigercrm/branches/5.0.3/modules/Portal/Popup.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 18 03:35:41 EDT 2007
Author: richie
Date: Wed Apr 18 01:35:36 2007
New Revision: 10716
Log:
fix for Site :Problem in editing an existing site. Fixes #3394 --minnie
Modified:
vtigercrm/branches/5.0.3/modules/Portal/Popup.php
Modified: vtigercrm/branches/5.0.3/modules/Portal/Popup.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Portal/Popup.php (original)
+++ vtigercrm/branches/5.0.3/modules/Portal/Popup.php Wed Apr 18 01:35:36 2007
@@ -10,12 +10,7 @@
********************************************************************************/
require_once('modules/Portal/Portal.php');
-global $app_strings;
-global $app_list_strings;
-global $mod_strings;
-global $adb;
-
-global $theme;
+global $app_strings,$app_list_strings,$mod_strings,$adb,$theme;
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
if(isset($_REQUEST['record']) && $_REQUEST['record'] !='')
@@ -24,7 +19,9 @@
$query="select * from vtiger_portal where portalid =$portalid";
$result=$adb->query($query);
$portalname = $adb->query_result($result,0,'portalname');
- $portalurl = $adb->query_result($result,0,'portalurl');
+ $portalurl = $adb->query_result($result,0,'portalurl');
+ /* to remove http:// from portal url*/
+ $portalurl = preg_replace("/http:\/\//i","",$portalurl);
}
$portal_inputs='';
$portal_inputs.='<div style="display:block;position:relative;" id="orgLay" class="layerPopup">
More information about the vtigercrm-commits
mailing list