Clean code
This commit is contained in:
parent
65875c2a1b
commit
097ba9bc9e
1 changed files with 5 additions and 5 deletions
|
|
@ -112,7 +112,7 @@ if (!GETPOST("currency", 'alpha')) {
|
|||
}
|
||||
$source = GETPOST("s", 'aZ09') ? GETPOST("s", 'aZ09') : GETPOST("source", 'aZ09');
|
||||
$getpostlang = GETPOST('lang', 'aZ09');
|
||||
$ws = GETPOST("ws"); // Website reference where the newpayment page is embedded
|
||||
$ws = GETPOST("ws", "aZ09"); // Website reference where the newpayment page is embedded
|
||||
|
||||
|
||||
if (!$action) {
|
||||
|
|
@ -132,7 +132,7 @@ if (!$action) {
|
|||
|
||||
|
||||
$thirdparty = null; // Init for static analysis
|
||||
$istrpecu = null; // Init for static analysis
|
||||
$stripecu = null; // Init for static analysis
|
||||
$paymentintent = null; // Init for static analysis
|
||||
|
||||
// Load data required later for actions and view
|
||||
|
|
@ -965,9 +965,9 @@ if (!empty($logosmall) && is_readable($conf->mycompany->dir_output.'/logos/thumb
|
|||
// Output html code for logo
|
||||
if ($ws) {
|
||||
// Look for a personalized header file (htmlheaderpayment.html) if the payment system is called from a website
|
||||
$filehtmlheader = dol_osencode(DOL_DATA_ROOT . ($conf->entity > 1 ? '/' . $conf->entity : '') . '/website/' . $ws . '/htmlheaderpayment.html');
|
||||
if (is_file($filehtmlheader)) {
|
||||
print file_get_contents($filehtmlheader);
|
||||
$filehtmlheader = dol_sanitizePathName(DOL_DATA_ROOT . ($conf->entity > 1 ? '/' . $conf->entity : '') . '/website/' . $ws . '/htmlheaderpayment.html');
|
||||
if (dol_is_file($filehtmlheader)) {
|
||||
print file_get_contents(dol_osencode($filehtmlheader));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue