Browse Source

Enable logged in users to force a certain language

pull/6482/head
Jeroen De Meerleer 2 years ago
committed by Hypolite Petovan
parent
commit
33f7fd72ca
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/Core/L10n.php

+ 4
- 0
src/Core/L10n.php View File

@ -74,6 +74,10 @@ class L10n extends BaseObject
}
}
}
//if $_GET['lang'] is set force $_GET['lang']
if (isset($_GET['lang'])) {
$_SESSION['language'] = $_GET['lang'];
}
}
public static function setLangFromSession()


Loading…
Cancel
Save