I have to use following code for display current language code. So, It is working fine in older version. but, it is not work in latest OpenCart version.
Code:
<?php echo $_SESSION['language']; ?>
I got error:
PHP Notice: Undefined index: language in C:\xampplite\htdocs\2.2.0.0\catalog\view\theme\default\template\common\header.tpl on line 58
<?php echo $lang; ?>
in your header file. – hardik solanki