CS
This commit is contained in:
parent
6b863fe940
commit
76b26ac6b4
@ -3,11 +3,12 @@ if(!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class Logistics extends Module {
|
||||
class Logistics extends Module
|
||||
{
|
||||
public $_html = '';
|
||||
|
||||
public function __construct() {
|
||||
public function __construct()
|
||||
{
|
||||
$this->name = 'logistics';
|
||||
$this->tab = 'shipping_logistics';
|
||||
$this->version = '2.0';
|
||||
@ -20,7 +21,8 @@ class Logistics extends Module {
|
||||
$this->description = $this->l('Allows to manage parcels');
|
||||
}
|
||||
|
||||
public function install() {
|
||||
public function install()
|
||||
{
|
||||
# Add admin tabs
|
||||
$tabs_i18n = array(
|
||||
'fr' => 'Gestion des envois',
|
||||
@ -47,7 +49,8 @@ class Logistics extends Module {
|
||||
&& $this->registerHook('updateCarrier');
|
||||
}
|
||||
|
||||
private function installCarriers() {
|
||||
private function installCarriers()
|
||||
{
|
||||
return
|
||||
// La Poste
|
||||
Db::getInstance()->Execute('
|
||||
@ -150,7 +153,8 @@ class Logistics extends Module {
|
||||
');
|
||||
}
|
||||
|
||||
private function uninstallCarriers() {
|
||||
private function uninstallCarriers()
|
||||
{
|
||||
/*Db::getInstance()->ExecuteS('DROP TABLE IF EXISTS `'._DB_PREFIX_.'lapostews`');
|
||||
Db::getInstance()->ExecuteS('DROP TABLE IF EXISTS `'._DB_PREFIX_.'lapostews_pr`');
|
||||
Db::getInstance()->ExecuteS('DROP TABLE IF EXISTS `'._DB_PREFIX_.'exapaqws`');
|
||||
@ -161,11 +165,13 @@ class Logistics extends Module {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
public function uninstall() {
|
||||
public function uninstall()
|
||||
{
|
||||
return $this->uninstallCarriers() && parent::uninstall();
|
||||
}
|
||||
|
||||
public function getContent() {
|
||||
public function getContent()
|
||||
{
|
||||
global $cookie;
|
||||
|
||||
if (Tools::isSubmit('submitUpdate')) {
|
||||
@ -834,7 +840,7 @@ class Logistics extends Module {
|
||||
}
|
||||
|
||||
$lock = Configuration::get('LOGISTICS_LOCK');
|
||||
if($lock === FALSE || empty($lock)) {
|
||||
if ($lock === false || empty($lock)) {
|
||||
$lock = serialize(array());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user