Skip to content

Commit

Permalink
Applies changes from PR iazel#21
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Johnson committed Nov 21, 2017
1 parent ac7f2ab commit 6612322
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,16 @@ protected function configure()
InputOption::VALUE_REQUIRED,
'Use the specific Store View',
Store::DEFAULT_STORE_ID
)
;
);
return parent::configure();
}

public function execute(InputInterface $inp, OutputInterface $out)
{
if (!$this->state->getAreaCode()) {
try {
// this tosses an error if the areacode is not set.
$this->state->getAreaCode();
} catch (\Exception $ex) {
$this->state->setAreaCode('adminhtml');
}

Expand Down

0 comments on commit 6612322

Please sign in to comment.