Skip to content

Commit

Permalink
Module.php - fixed syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Nov 16, 2015
1 parent dad544d commit 0a0f955
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ class Module extends \yii\base\Module
public function init()
{
parent::init();
if (!$this->has(CART)) {
$this->set(CART, [
if (!$this->has(static::CART)) {
$this->set(static::CART, [
'class' => 'hiqdev\yii2\cart\ShoppingCart',
]);
}
$this->get(CART)->module = $this;
$this->get(static::CART)->module = $this;
$this->registerTranslations();
}

Expand Down Expand Up @@ -67,7 +67,7 @@ public static function getInstance()

public function getCart()
{
return $this->get(CART);
return $this->get(static::CART);
}

public function buildUrl($route = null)
Expand Down

0 comments on commit 0a0f955

Please sign in to comment.