Commit 7f6b80c3 authored by Chenu Denis's avatar Chenu Denis

[fix] Language can be updated during survey

parent 0397f4fc
......@@ -3,6 +3,9 @@ Only partial changelog, [commit history](https://framagit.org/Shnoulle/LimeSurve
## Not released
### Fix
- Language can be updated during survey
### Feature
- Leave partial HTML in admin email
......
......@@ -9,14 +9,6 @@
public function __construct()
{
$this->loginUrl = Yii::app()->createUrl('admin/authentication', array('sa' => 'login'));
// Try to fix missing language in plugin controller
if (empty(Yii::app()->session['adminlang']))
{
Yii::app()->session["adminlang"] = Yii::app()->getConfig("defaultlang");
}
Yii::app()->setLanguage(Yii::app()->session['adminlang']);
}
public function checkAccess($operation, $params = array(), $allowCaching = true)
......@@ -94,4 +86,4 @@
}
}
?>
\ No newline at end of file
?>
Markdown is supported
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