Commit 69ad0e41 authored by karailiev's avatar karailiev
Browse files

* User's language is selected by default when editing language files

parent 03442556
......@@ -46,7 +46,7 @@ $bgcolor = '#FFFFFF';
//* reading languages
$language_option = '';
$selected_language = (isset($_REQUEST['lng_select']))?substr($_REQUEST['lng_select'],0,2):'en';
$selected_language = (isset($_REQUEST['lng_select']))?substr($_REQUEST['lng_select'],0,2):$_SESSION['s']['language'];
$handle = opendir(ISPC_ROOT_PATH.'/lib/lang/');
while ($file = readdir ($handle)) {
if ($file != '.' && $file != '..') {
......@@ -103,4 +103,4 @@ $app->tpl_defaults();
$app->tpl->pparse();
?>
\ No newline at end of file
?>
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