// Add config/alias.php file + refactoring of DB / MySQL classes
This commit is contained in:
@@ -209,8 +209,8 @@ class BankWire extends PaymentModule
|
||||
if ($state == _PS_OS_BANKWIRE_ OR $state == _PS_OS_OUTOFSTOCK_)
|
||||
$context->smarty->assign(array(
|
||||
'total_to_pay' => Tools::displayPrice($params['total_to_pay'], $params['currencyObj'], false),
|
||||
'bankwireDetails' => nl2br2($this->details),
|
||||
'bankwireAddress' => nl2br2($this->address),
|
||||
'bankwireDetails' => Tools::nl2br($this->details),
|
||||
'bankwireAddress' => Tools::nl2br($this->address),
|
||||
'bankwireOwner' => $this->owner,
|
||||
'status' => 'ok',
|
||||
'id_order' => $params['objOrder']->id
|
||||
|
||||
@@ -127,7 +127,7 @@ class BlockLink extends Module
|
||||
public function addLink()
|
||||
{
|
||||
/* Url registration */
|
||||
if (!Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'blocklink VALUES (NULL, \''.pSQL($_POST['url']).'\', '.((isset($_POST['newWindow']) AND $_POST['newWindow']) == 'on' ? 1 : 0).')') OR !$lastId = mysql_insert_id())
|
||||
if (!Db::getInstance()->Execute('INSERT INTO '._DB_PREFIX_.'blocklink VALUES (NULL, \''.pSQL($_POST['url']).'\', '.((isset($_POST['newWindow']) AND $_POST['newWindow']) == 'on' ? 1 : 0).')') OR !$lastId = Db::getInstance()->Insert_ID())
|
||||
return false;
|
||||
/* Multilingual text */
|
||||
$languages = Language::getLanguages();
|
||||
|
||||
@@ -164,7 +164,7 @@ class Cheque extends PaymentModule
|
||||
'total' => $cart->getOrderTotal(true, Cart::BOTH),
|
||||
'isoCode' => $context->language->iso_code,
|
||||
'chequeName' => $this->chequeName,
|
||||
'chequeAddress' => nl2br2($this->address),
|
||||
'chequeAddress' => Tools::nl2br($this->address),
|
||||
'this_path' => $this->_path,
|
||||
'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/'
|
||||
));
|
||||
@@ -198,7 +198,7 @@ class Cheque extends PaymentModule
|
||||
$context->smarty->assign(array(
|
||||
'total_to_pay' => Tools::displayPrice($params['total_to_pay'], $params['currencyObj'], false),
|
||||
'chequeName' => $this->chequeName,
|
||||
'chequeAddress' => nl2br2($this->address),
|
||||
'chequeAddress' => Tools::nl2br($this->address),
|
||||
'status' => 'ok',
|
||||
'id_order' => $params['objOrder']->id
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user