]> git.koha-community.org Git - koha.git/commit
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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 21 Sep 2018 13:36:01 +0000 (15:36 +0200)
commita4573184230ce89257b17533fafae05bfbd490d9
tree590eda9ad88554e63775140b56ab640cc266b10c
parent85b488a9ead98970f0a4e7bbe6ea3668e18365d0
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>
(cherry picked from commit 56c50a66169f956584050a8630a71cfa7d5984cb)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 32b01b264277a77dbb79133f5af8eeecbe64d997)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
admin/preferences.pl