Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #36 from PrestaShop/return-after-init
Browse files Browse the repository at this point in the history
Return after init
  • Loading branch information
eternoendless authored Jan 2, 2018
2 parents 9a2d816 + f54f375 commit b2da3db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>welcome</name>
<displayName><![CDATA[Welcome]]></displayName>
<version><![CDATA[4.0.0]]></version>
<version><![CDATA[4.0.1]]></version>
<description><![CDATA[Help the user to create his first product.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[]]></tab>
Expand Down
14 changes: 7 additions & 7 deletions welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,8 @@ class Welcome extends Module
*/
public function __construct()
{
// If the symfony container is not available this constructor will fail
// This can happen during the upgrade process
if (null == SymfonyContainer::getInstance()) {
return;
}

$this->name = 'welcome';
$this->version = '4.0.0';
$this->version = '4.0.1';
$this->author = 'PrestaShop';

parent::__construct();
Expand All @@ -67,6 +61,12 @@ public function __construct()
'max' => _PS_VERSION_,
];

// If the symfony container is not available this constructor will fail
// This can happen during the upgrade process
if (null == SymfonyContainer::getInstance()) {
return;
}

if (Module::isInstalled($this->name)) {
$this->onBoarding = new OnBoarding(
$this->getTranslator(),
Expand Down

0 comments on commit b2da3db

Please sign in to comment.