From 4bf47078580d0fb76fbb03b5210bbd655e8bdec6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 5 Jan 2009 01:49:34 +0000 Subject: [PATCH] Fix: Bad link --- htdocs/adherents/public.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/adherents/public.php b/htdocs/adherents/public.php index 45c31c6fb2f..d9f0ba8d2c4 100644 --- a/htdocs/adherents/public.php +++ b/htdocs/adherents/public.php @@ -49,7 +49,10 @@ print ''; print ''; print ''; print ''; -print ''; +$firstpart=$dolibarr_main_url_root; +$regex=DOL_URL_ROOT.'$'; +$firstpart=eregi_replace($regex,'',$firstpart); +print ''; print '
'.$langs->trans("Description").''.$langs->trans("URL").'
'.$langs->trans("BlankSubscriptionForm").''.$dolibarr_main_url_root.DOL_URL_ROOT.'/public/adherents/new.php'.'
'.$langs->trans("PublicMemberList").''.$dolibarr_main_url_root.DOL_URL_ROOT.'/public/adherents/public_list.php'.'
'.$langs->trans("PublicMemberCard").''.DOL_URL_ROOT.'/public/adherents/public_card.php?id=xxx'.'
'.$langs->trans("PublicMemberCard").''.$firstpart.DOL_URL_ROOT.'/public/adherents/public_card.php?id=xxx'.'
';