Skip to content

Commit

Permalink
Removed unused uses
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosid committed Oct 29, 2018
1 parent 6cf7e73 commit b3b1658
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions frontend/controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace frontend\controllers;

use cheatsheet\Time;
use common\sitemap\ArticleUrlGenerator;
use common\sitemap\PageUrlGenerator;
use common\sitemap\UrlsIterator;
use frontend\models\ContactForm;
use Sitemaped\Element\Urlset\Urlset;
Expand Down Expand Up @@ -75,12 +73,12 @@ public function actionContact()
'options' => ['class' => 'alert-success']
]);
return $this->refresh();
} else {
Yii::$app->getSession()->setFlash('alert', [
'body' => \Yii::t('frontend', 'There was an error sending email.'),
'options' => ['class' => 'alert-danger']
]);
}

Yii::$app->getSession()->setFlash('alert', [
'body' => \Yii::t('frontend', 'There was an error sending email.'),
'options' => ['class' => 'alert-danger']
]);
}

return $this->render('contact', [
Expand All @@ -92,6 +90,7 @@ public function actionContact()
* @param string $format
* @param bool $gzip
* @return string
* @throws BadRequestHttpException
*/
public function actionSitemap($format = Sitemap::FORMAT_XML, $gzip = false)
{
Expand Down

0 comments on commit b3b1658

Please sign in to comment.