Skip to content

Commit

Permalink
Update Module.php
Browse files Browse the repository at this point in the history
  • Loading branch information
glpzzz authored Oct 27, 2020
1 parent f633da4 commit 8db7b83
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

namespace daxslab\contactform;

use Yii;
use yii\i18n\PhpMessageSource;
use yii\base\Module as BaseModule;
use Yii;

/**
* Class Module
* @package daxslab\contactform
*/
class Module extends BaseModule
class Module extends \yii\base\Module
{

/**
Expand All @@ -36,7 +35,6 @@ public function init()
parent::init();

$app = Yii::$app;

if (!isset($app->get('i18n')->translations['contact*'])) {
$app->get('i18n')->translations['contact*'] = [
'class' => PhpMessageSource::className(),
Expand All @@ -49,7 +47,7 @@ public function init()
? $this->email
: Yii::$app->params['adminEmail'];

$this->successMessage = isset($this->successMessage)
$this->successMessage= isset($this->successMessage)
? $this->successMessage
: Yii::t('contact', 'Thank you for contacting us. We will respond to you as soon as possible.');

Expand Down

0 comments on commit 8db7b83

Please sign in to comment.