diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php
index 9cb9bca667b..b0109d69fe5 100644
--- a/htdocs/compta/index.php
+++ b/htdocs/compta/index.php
@@ -711,7 +711,7 @@ if (!empty($conf->facture->enabled) && !empty($conf->commande->enabled) && $user
print "\n";
}
- print '
| '.$langs->trans("Total").' ('.$langs->trans("RemainderToBill").': '.price($tot_tobill).') | ';
+ print '
| '.$langs->trans("Total").' ('.$langs->trans("RemainderToBill").': '.price($tot_tobill).') | ';
if (!empty($conf->global->MAIN_SHOW_HT_ON_SUMMARY)) {
print ''.price($tot_ht).' | ';
}
diff --git a/htdocs/contact/ldap.php b/htdocs/contact/ldap.php
index 79696d12997..8babb849e7e 100644
--- a/htdocs/contact/ldap.php
+++ b/htdocs/contact/ldap.php
@@ -173,7 +173,7 @@ if ($result > 0) {
// Show tree
if (((!is_numeric($records)) || $records != 0) && (!isset($records['count']) || $records['count'] > 0)) {
if (!is_array($records)) {
- print '
| '.$langs->trans("ErrorFailedToReadLDAP").' |
';
+ print '| '.$langs->trans("ErrorFailedToReadLDAP").' |
';
} else {
$result = show_ldap_content($records, 0, $records['count'], true);
}
diff --git a/htdocs/core/ajax/ajaxdirpreview.php b/htdocs/core/ajax/ajaxdirpreview.php
index 810a23957fd..a3da2812067 100644
--- a/htdocs/core/ajax/ajaxdirpreview.php
+++ b/htdocs/core/ajax/ajaxdirpreview.php
@@ -334,7 +334,7 @@ if ($type == 'directory') {
$textifempty = $langs->trans('NoFileFound');
} elseif ($section === '0') {
if ($module == 'ecm') {
- $textifempty = '
'.$langs->trans("DirNotSynchronizedSyncFirst").'
';
+ $textifempty = '
'.$langs->trans("DirNotSynchronizedSyncFirst").'
';
} else {
$textifempty = $langs->trans('NoFileFound');
}
diff --git a/htdocs/core/ajax/ajaxdirtree.php b/htdocs/core/ajax/ajaxdirtree.php
index 9a0a11f04d4..1ca88a93d2a 100644
--- a/htdocs/core/ajax/ajaxdirtree.php
+++ b/htdocs/core/ajax/ajaxdirtree.php
@@ -283,7 +283,7 @@ if (empty($conf->use_javascript_ajax) || !empty($conf->global->MAIN_ECM_DISABLE_
print '';
print '';
if ($nbofsubdir && $nboffilesinsubdir) {
- print '+'.$nboffilesinsubdir.' ';
+ print '+'.$nboffilesinsubdir.' ';
}
print ' | ';
diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index 6020e0b2723..f63081660d6 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -7808,7 +7808,7 @@ abstract class CommonObject
$out .= $labeltoshow;
}
if ($mode != 'view' && !empty($extrafields->attributes[$this->table_element]['required'][$key])) {
- $out .= ' *';
+ $out .= ' *';
}
} else {
if ($mode != 'view' && !empty($extrafields->attributes[$this->table_element]['required'][$key])) {
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 8deda2ecd09..f0ce6aab12b 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -5783,11 +5783,11 @@ class Form
return $num;
} else {
- $this->error = ''.$langs->trans("ErrorNoVATRateDefinedForSellerCountry", $country_code).'';
+ $this->error = ''.$langs->trans("ErrorNoVATRateDefinedForSellerCountry", $country_code).'';
return -1;
}
} else {
- $this->error = ''.$this->db->error().'';
+ $this->error = ''.$this->db->error().'';
return -2;
}
}
@@ -5838,9 +5838,9 @@ class Form
// Check parameters
if (is_object($societe_vendeuse) && !$societe_vendeuse->country_code) {
if ($societe_vendeuse->id == $mysoc->id) {
- $return .= ''.$langs->trans("ErrorYourCountryIsNotDefined").'';
+ $return .= ''.$langs->trans("ErrorYourCountryIsNotDefined").'';
} else {
- $return .= ''.$langs->trans("ErrorSupplierCountryIsNotDefined").'';
+ $return .= ''.$langs->trans("ErrorSupplierCountryIsNotDefined").'';
}
return $return;
}
diff --git a/htdocs/core/class/html.formsms.class.php b/htdocs/core/class/html.formsms.class.php
index 0ce9cae7b4e..60811956c32 100644
--- a/htdocs/core/class/html.formsms.class.php
+++ b/htdocs/core/class/html.formsms.class.php
@@ -178,7 +178,7 @@ function limitChars(textarea, limit, infodiv)
} else {
if ($this->fromtype) {
$langs->load("errors");
- print ' <'.$langs->trans("ErrorNoPhoneDefinedForThisUser").'> ';
+ print ' <'.$langs->trans("ErrorNoPhoneDefinedForThisUser").'> ';
}
}
print "\n";
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index cffd1f752f6..df92c688bad 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -6156,7 +6156,7 @@ function yn($yesno, $case = 1, $color = 0)
}
}
if ($color) {
- return ''.$result.'';
+ return ''.$result.'';
}
return $result;
}
diff --git a/htdocs/core/lib/invoice.lib.php b/htdocs/core/lib/invoice.lib.php
index 28b56efb20d..83585ed2d23 100644
--- a/htdocs/core/lib/invoice.lib.php
+++ b/htdocs/core/lib/invoice.lib.php
@@ -1218,7 +1218,7 @@ function getCustomerInvoiceUnpaidOpenTable($maxCount = 500, $socid = 0)
print "\n";
}
- print '| '.$langs->trans("Total").' ('.$langs->trans("RemainderToTake").': '.price($total_ttc - $totalam).') | ';
+ print '
| '.$langs->trans("Total").' ('.$langs->trans("RemainderToTake").': '.price($total_ttc - $totalam).') | ';
print ' | ';
if (!empty($conf->global->MAIN_SHOW_HT_ON_SUMMARY)) {
print ''.price($total).' | ';
@@ -1383,7 +1383,7 @@ function getPurchaseInvoiceUnpaidOpenTable($maxCount = 500, $socid = 0)
print "
\n";
}
- print '| '.$langs->trans("Total").' ('.$langs->trans("RemainderToPay").': '.price($total_ttc - $totalam).') | ';
+ print '
| '.$langs->trans("Total").' ('.$langs->trans("RemainderToPay").': '.price($total_ttc - $totalam).') | ';
print ' | ';
if (!empty($conf->global->MAIN_SHOW_HT_ON_SUMMARY)) {
print ''.price($total).' | ';
diff --git a/htdocs/core/lib/payments.lib.php b/htdocs/core/lib/payments.lib.php
index 4621e22d122..390961f5db2 100644
--- a/htdocs/core/lib/payments.lib.php
+++ b/htdocs/core/lib/payments.lib.php
@@ -224,7 +224,7 @@ function getOnlinePaymentUrl($mode, $type, $ref = '', $amount = '9.99', $freetag
}
if ($type == 'free') {
- $out = $urltouse.'/public/payment/newpayment.php?amount='.($mode ? '' : '').$amount.($mode ? '' : '').'&tag='.($mode ? '' : '').$freetag.($mode ? '' : '');
+ $out = $urltouse.'/public/payment/newpayment.php?amount='.($mode ? '' : '').$amount.($mode ? '' : '').'&tag='.($mode ? '' : '').$freetag.($mode ? '' : '');
if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) {
if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) {
$out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN);
@@ -234,120 +234,120 @@ function getOnlinePaymentUrl($mode, $type, $ref = '', $amount = '9.99', $freetag
}
//if ($mode) $out.='&noidempotency=1';
} elseif ($type == 'order') {
- $out = $urltouse.'/public/payment/newpayment.php?source=order&ref='.($mode ? '' : '');
+ $out = $urltouse.'/public/payment/newpayment.php?source=order&ref='.($mode ? '' : '');
if ($mode == 1) {
$out .= 'order_ref';
}
if ($mode == 0) {
$out .= urlencode($ref);
}
- $out .= ($mode ? '' : '');
+ $out .= ($mode ? '' : '');
if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) {
if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) {
$out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN);
} else {
- $out .= '&securekey='.($mode ? '' : '');
+ $out .= '&securekey='.($mode ? '' : '');
if ($mode == 1) {
$out .= "hash('".$conf->global->PAYMENT_SECURITY_TOKEN."' + '".$type."' + order_ref)";
}
if ($mode == 0) {
$out .= dol_hash($conf->global->PAYMENT_SECURITY_TOKEN.$type.$ref, 2);
}
- $out .= ($mode ? '' : '');
+ $out .= ($mode ? '' : '');
}
}
} elseif ($type == 'invoice') {
- $out = $urltouse.'/public/payment/newpayment.php?source=invoice&ref='.($mode ? '' : '');
+ $out = $urltouse.'/public/payment/newpayment.php?source=invoice&ref='.($mode ? '' : '');
if ($mode == 1) {
$out .= 'invoice_ref';
}
if ($mode == 0) {
$out .= urlencode($ref);
}
- $out .= ($mode ? '' : '');
+ $out .= ($mode ? '' : '');
if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) {
if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) {
$out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN);
} else {
- $out .= '&securekey='.($mode ? '' : '');
+ $out .= '&securekey='.($mode ? '' : '');
if ($mode == 1) {
$out .= "hash('".$conf->global->PAYMENT_SECURITY_TOKEN."' + '".$type."' + invoice_ref)";
}
if ($mode == 0) {
$out .= dol_hash($conf->global->PAYMENT_SECURITY_TOKEN.$type.$ref, 2);
}
- $out .= ($mode ? '' : '');
+ $out .= ($mode ? '' : '');
}
}
} elseif ($type == 'contractline') {
- $out = $urltouse.'/public/payment/newpayment.php?source=contractline&ref='.($mode ? '' : '');
+ $out = $urltouse.'/public/payment/newpayment.php?source=contractline&ref='.($mode ? '' : '');
if ($mode == 1) {
$out .= 'contractline_ref';
}
if ($mode == 0) {
$out .= urlencode($ref);
}
- $out .= ($mode ? '' : '');
+ $out .= ($mode ? '' : '');
if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) {
if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) {
$out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN);
} else {
- $out .= '&securekey='.($mode ? '' : '');
+ $out .= '&securekey='.($mode ? '' : '');
if ($mode == 1) {
$out .= "hash('".$conf->global->PAYMENT_SECURITY_TOKEN."' + '".$type."' + contractline_ref)";
}
if ($mode == 0) {
$out .= dol_hash($conf->global->PAYMENT_SECURITY_TOKEN.$type.$ref, 2);
}
- $out .= ($mode ? '' : '');
+ $out .= ($mode ? '' : '');
}
}
} elseif ($type == 'member' || $type == 'membersubscription') {
$newtype = 'member';
- $out = $urltouse.'/public/payment/newpayment.php?source=member&ref='.($mode ? '' : '');
+ $out = $urltouse.'/public/payment/newpayment.php?source=member&ref='.($mode ? '' : '');
if ($mode == 1) {
$out .= 'member_ref';
}
if ($mode == 0) {
$out .= urlencode($ref);
}
- $out .= ($mode ? '' : '');
+ $out .= ($mode ? '' : '');
if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) {
if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) {
$out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN);
} else {
- $out .= '&securekey='.($mode ? '' : '');
+ $out .= '&securekey='.($mode ? '' : '');
if ($mode == 1) {
$out .= "hash('".$conf->global->PAYMENT_SECURITY_TOKEN."' + '".$newtype."' + member_ref)";
}
if ($mode == 0) {
$out .= dol_hash($conf->global->PAYMENT_SECURITY_TOKEN.$newtype.$ref, 2);
}
- $out .= ($mode ? '' : '');
+ $out .= ($mode ? '' : '');
}
}
}
if ($type == 'donation') {
- $out = $urltouse.'/public/payment/newpayment.php?source=donation&ref='.($mode ? '' : '');
+ $out = $urltouse.'/public/payment/newpayment.php?source=donation&ref='.($mode ? '' : '');
if ($mode == 1) {
$out .= 'donation_ref';
}
if ($mode == 0) {
$out .= urlencode($ref);
}
- $out .= ($mode ? '' : '');
+ $out .= ($mode ? '' : '');
if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) {
if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) {
$out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN);
} else {
- $out .= '&securekey='.($mode ? '' : '');
+ $out .= '&securekey='.($mode ? '' : '');
if ($mode == 1) {
$out .= "hash('".$conf->global->PAYMENT_SECURITY_TOKEN."' + '".$type."' + donation_ref)";
}
if ($mode == 0) {
$out .= dol_hash($conf->global->PAYMENT_SECURITY_TOKEN.$type.$ref, 2);
}
- $out .= ($mode ? '' : '');
+ $out .= ($mode ? '' : '');
}
}
}
@@ -450,7 +450,7 @@ function htmlPrintOnlinePaymentFooter($fromcompany, $langs, $addformmessage = 0,
}
}
- print '
'."\n";
+ print '
'."\n";
print $fromcompany->name.'
';
print $line1;
if (strlen($line1.$line2) > 50) {
@@ -459,5 +459,5 @@ function htmlPrintOnlinePaymentFooter($fromcompany, $langs, $addformmessage = 0,
print ' - ';
}
print $line2;
- print ''."\n";
+ print ''."\n";
}