Commit 4c1be080 authored by Ahmad Asjad's avatar Ahmad Asjad
Browse files

setTheme implementation

parent 06121233
<?php
use PixelHumain\PixelHumain\components\ThemeHelper;
/**
* CO Tools Module
*
......@@ -64,7 +67,7 @@ class InteropModule extends \yii\base\Module {
//Apply theme
$themeName = $this->getTheme();
Yii::app()->theme = $themeName;
ThemeHelper::setWebsiteTheme($themeName);
if(@Yii::app()->request->cookies['lang'] && !empty(Yii::app()->request->cookies['lang']->value))
Yii::app()->language = (string)Yii::app()->request->cookies['lang'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment