';
+
+ if (! empty($options)) print '| '.$options.' | ';
+
+ print '';
$max=$conf->global->MAIN_UPLOAD_DOC; // En Kb
$maxphp=@ini_get('upload_max_filesize'); // En inconnu
@@ -779,7 +784,7 @@ class FormFile
* @param Object $object Object to use
* @return void
*/
- private function _form_ajaxfileupload($object)
+ private function _formAjaxFileUpload($object)
{
global $langs;
diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php
index 7d95b981b1a..01893919e00 100644
--- a/htdocs/core/class/html.formmail.class.php
+++ b/htdocs/core/class/html.formmail.class.php
@@ -71,7 +71,7 @@ class FormMail
/**
* Constructor
*
- * @param DoliDB $DB Database handler
+ * @param DoliDB $db Database handler
*/
function FormMail($db)
{
@@ -104,7 +104,7 @@ class FormMail
/**
* Clear list of attached files in send mail form (stored in session)
- *
+ *
* @return void
*/
function clear_attached_files()
@@ -564,6 +564,7 @@ class FormMail
elseif ($this->param["models"]=='fichinter_send') { $defaultmessage=$langs->transnoentities("PredefinedMailContentSendFichInter"); }
elseif (! is_numeric($this->withbody)) { $defaultmessage=$this->withbody; }
+ // Complete substitution array
if ($conf->paypal->enabled && $conf->global->PAYPAL_ADD_PAYMENT_URL)
{
require_once(DOL_DOCUMENT_ROOT."/paypal/lib/paypal.lib.php");
@@ -573,12 +574,12 @@ class FormMail
if ($this->param["models"]=='order_send')
{
$url=getPaypalPaymentUrl(0,'order',$this->substit['__ORDERREF__']);
- $defaultmessage=$langs->transnoentities("PredefinedMailContentSendOrderWithPaypalLink",$url);
+ $this->substit['__PERSONALIZED__']=$langs->transnoentitiesnoconv("PredefinedMailContentLink",$url);
}
if ($this->param["models"]=='facture_send')
{
$url=getPaypalPaymentUrl(0,'invoice',$this->substit['__FACREF__']);
- $defaultmessage=$langs->transnoentities("PredefinedMailContentSendInvoiceWithPaypalLink",$url);
+ $this->substit['__PERSONALIZED__']=$langs->transnoentitiesnoconv("PredefinedMailContentLink",$url);
}
}
diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index c1640110553..e2d7ed35ea8 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -720,7 +720,7 @@ class FormOther
}
/**
- * Show form to select addresse
+ * Show form to select address
*
* @param int $page Page
* @param string $selected Id condition pre-selectionne
@@ -733,6 +733,8 @@ class FormOther
function form_address($page, $selected, $socid, $htmlname='address_id', $origin='', $originid='')
{
global $langs,$conf;
+ global $form;
+
if ($htmlname != "none")
{
print ' |