// Clean code

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13133 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-02-08 14:38:52 +00:00
parent 0d20a7a1db
commit 4a4a4a79e5

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;
}