// Context part 21

This commit is contained in:
tDidierjean
2011-07-26 16:40:17 +00:00
parent a64edf3ff6
commit ea890721e8
7 changed files with 62 additions and 63 deletions
+7 -4
View File
@@ -32,10 +32,13 @@ class FrontControllerCore
* @var Context
*/
protected $context;
/* Deprecated shortcuts as of 1.5 - Use $context->var instead */
protected static $smarty;
protected static $cookie;
protected static $link;
protected static $cart;
public $iso;
public $orderBy;
@@ -50,8 +53,8 @@ class FrontControllerCore
protected $restrictedCountry = false;
protected $maintenance = false;
protected $id_current_shop;
protected $id_current_group_shop;
protected $id_current_shop;
protected $id_current_group_shop;
public static $initialized = false;
@@ -535,8 +538,8 @@ class FrontControllerCore
public function displayFooter()
{
if (!self::$initialized)
$this->init();
if (!$this->context)
$this->context = Context::getContext();
$this->context->smarty->assign(array(
'HOOK_RIGHT_COLUMN' => Module::hookExec('rightColumn', array('cart' => $this->context->cart)),