From 0f43bdd6416cf997bf656f5f3766f6f6020b52a5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 23 Jan 2018 10:24:52 -0300 Subject: [PATCH] Bug 12904: Pass KOHA_VERSION in C4::Auth Signed-off-by: Josef Moravec --- C4/Auth.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/Auth.pm b/C4/Auth.pm index 67bdd7e751..838b0d238c 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -472,6 +472,7 @@ sub get_template_and_user { UseKohaPlugins => C4::Context->preference('UseKohaPlugins'), UseCourseReserves => C4::Context->preference("UseCourseReserves"), useDischarge => C4::Context->preference('useDischarge'), + KOHA_VERSION => C4::Context->preference('Version'), ); } else { @@ -545,6 +546,7 @@ sub get_template_and_user { OpacTopissue => C4::Context->preference("OpacTopissue"), RequestOnOpac => C4::Context->preference("RequestOnOpac"), 'Version' => C4::Context->preference('Version'), + KOHA_VERSION => C4::Context->preference('Version'), hidelostitems => C4::Context->preference("hidelostitems"), mylibraryfirst => ( C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv ) ? C4::Context->userenv->{'branch'} : '', opaclayoutstylesheet => "" . C4::Context->preference("opaclayoutstylesheet"), -- 2.39.5