From 3349c2bfef891ea38bfbb315205e7accd105efb3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Jul 2011 11:42:39 +0000 Subject: [PATCH] Fix: Direct payment from autosubscribe form was showing wrong text. --- htdocs/langs/en_US/members.lang | 1 + htdocs/langs/fr_FR/members.lang | 1 + htdocs/public/paybox/newpayment.php | 11 ++++++++--- htdocs/public/paypal/newpayment.php | 11 ++++++++--- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/htdocs/langs/en_US/members.lang b/htdocs/langs/en_US/members.lang index 3e03924e697..935d02f67b4 100644 --- a/htdocs/langs/en_US/members.lang +++ b/htdocs/langs/en_US/members.lang @@ -193,3 +193,4 @@ Associations=Foundations Collectivités=Organizations Particuliers=Personal Entreprises=Companies +DOLIBARRFOUNDATION_PAYMENT_FORM=To make your subscription payment using a bank transfer, see page http://wiki.dolibarr.org/index.php/Subscribe.
To pay using a Credit Card or Paypal, click on button at bottom of this page.

diff --git a/htdocs/langs/fr_FR/members.lang b/htdocs/langs/fr_FR/members.lang index 95531c67c0e..4712ca76959 100644 --- a/htdocs/langs/fr_FR/members.lang +++ b/htdocs/langs/fr_FR/members.lang @@ -197,3 +197,4 @@ Associations=Associations Collectivités=Collectivités Particuliers=Particuliers Entreprises=Entreprises +DOLIBARRFOUNDATION_PAYMENT_FORM=Pour réaliser le paiement de votre cotisation par virement bancaire ou par chèque, consulter la page http://wiki.dolibarr.org/index.php/Adhérer.
Pour payer dès maintenant par Carte Bancaire ou Paypal, cliquer sur le bouton au bas de cette page.

diff --git a/htdocs/public/paybox/newpayment.php b/htdocs/public/paybox/newpayment.php index fdec201c31d..e27a2493369 100644 --- a/htdocs/public/paybox/newpayment.php +++ b/htdocs/public/paybox/newpayment.php @@ -23,7 +23,7 @@ * \ingroup paybox * \brief File to offer a way to make a payment for a particular Dolibarr entity * \author Laurent Destailleur - * \version $Id: newpayment.php,v 1.57 2011/07/13 11:14:43 eldy Exp $ + * \version $Id: newpayment.php,v 1.58 2011/07/13 11:42:39 eldy Exp $ */ define("NOLOGIN",1); // This means this output page does not require to be logged. @@ -188,7 +188,12 @@ if ($urllogo) // Output introduction text $text=''; -if (! empty($conf->global->PAYBOX_NEWMEMBER_TEXT)) $text.=$langs->trans($conf->global->PAYBOX_NEWMEMBER_TEXT)."
\n"; +if (! empty($conf->global->PAYBOX_NEWMEMBER_TEXT)) +{ + $langs->load("members"); + if (preg_match('/^\((.*)\)$/',$conf->global->PAYBOX_NEWMEMBER_TEXT,$reg)) $text.=$langs->trans($reg[1])."
\n"; + else $text.=$conf->global->PAYBOX_NEWMEMBER_TEXT."
\n"; +} if (empty($text)) { $text.='
'.$langs->trans("WelcomeOnPaymentPage").'
'."\n"; @@ -723,5 +728,5 @@ html_print_paybox_footer($mysoc,$langs); $db->close(); -llxFooterPayBox('$Date: 2011/07/13 11:14:43 $ - $Revision: 1.57 $'); +llxFooterPayBox('$Date: 2011/07/13 11:42:39 $ - $Revision: 1.58 $'); ?> diff --git a/htdocs/public/paypal/newpayment.php b/htdocs/public/paypal/newpayment.php index 82fd23583a6..30001659341 100755 --- a/htdocs/public/paypal/newpayment.php +++ b/htdocs/public/paypal/newpayment.php @@ -23,7 +23,7 @@ * \ingroup paypal * \brief File to offer a way to make a payment for a particular Dolibarr entity * \author Laurent Destailleur - * \version $Id: newpayment.php,v 1.22 2011/07/13 11:14:43 eldy Exp $ + * \version $Id: newpayment.php,v 1.23 2011/07/13 11:42:39 eldy Exp $ */ define("NOLOGIN",1); // This means this output page does not require to be logged. @@ -282,7 +282,12 @@ if ($urllogo) // Output introduction text $text=''; -if (! empty($conf->global->PAYPAL_NEWMEMBER_TEXT)) $text.=$langs->trans($conf->global->PAYPAL_NEWMEMBER_TEXT)."
\n"; +if (! empty($conf->global->PAYBOX_NEWMEMBER_TEXT)) +{ + $langs->load("members"); + if (preg_match('/^\((.*)\)$/',$conf->global->PAYBOX_NEWMEMBER_TEXT,$reg)) $text.=$langs->trans($reg[1])."
\n"; + else $text.=$conf->global->PAYBOX_NEWMEMBER_TEXT."
\n"; +} if (empty($text)) { $text.='
'.$langs->trans("WelcomeOnPaymentPage").'
'."\n"; @@ -941,5 +946,5 @@ html_print_paypal_footer($mysoc,$langs); $db->close(); -llxFooterPaypal('$Date: 2011/07/13 11:14:43 $ - $Revision: 1.22 $'); +llxFooterPaypal('$Date: 2011/07/13 11:42:39 $ - $Revision: 1.23 $'); ?>