Bug 20504: Fix lang attribute in html tag on systempreferences page
authorKatrin Fischer <katrin.fischer.83@web.de>
Thu, 9 Aug 2018 17:46:09 +0000 (17:46 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 22 Aug 2018 12:12:59 +0000 (12:12 +0000)
commit56c50a66169f956584050a8630a71cfa7d5984cb
tree0cece54c594caa579ee8edb3ab79fad98505833b
parent9e9c9d5aa11b1804a5a2db8159cac76fad9bf1de
Bug 20504: Fix lang attribute in html tag on systempreferences page

On the system preferences page the lang attribute of the
html tag is always empty.

To test:
- Go to systempreferences
- Check the html source and look at the html tag,
  it should read: <html lang="">
- Apply patch
- Check the html source again: <html lang="en">
  Verify the language code shown matches the currently
  selected language in the staff interface
- Verify the language system preferences work correctly

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
The problem was actually that
  $lang = $template->param( 'lang' );
should certainly be $lang = $input->param( 'lang' );
and, as it, it overrides the value of 'lang' passed from C4::Auth

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
admin/preferences.pl