// Clean code

This commit is contained in:
rGaillard
2012-02-08 14:38:52 +00:00
parent d3dcb99419
commit f6e7160c2a

View File

@@ -177,8 +177,6 @@ class FrontControllerCore extends Controller
Tools::redirect(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null);
}
$_MODULES = array();
/* Cart already exists */
if ((int)$this->context->cookie->id_cart)
{
@@ -370,16 +368,6 @@ class FrontControllerCore extends Controller
$this->iso = $iso;
$this->setMedia();
// Customer wasn't defined at all
$customer = new StdClass();
if ($this->context->cookie->id_country)
$customer->geoloc_id_country = (int)$this->context->cookie->id_country;
if ($this->context->cookie->id_state)
$customer->geoloc_id_state = (int)$this->context->cookie->id_state;
if ($this->context->cookie->postcode)
$customer->geoloc_postcode = (int)$this->context->cookie->postcode;
$this->context->cart = $cart;
$this->context->currency = $currency;
}