From 8985be963754360da4af6f16b90ae60dab0d4587 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Fri, 7 Sep 2012 13:34:04 +0800 Subject: [PATCH] Bug 8737 - Incorrect icon at login in staff client Content-Type: text/plain; charset="utf-8" Added the following missing code to ensure the correct icon is used when logged out: IntranetFavicon => C4::Context->preference('IntranetFavicon') This was added into an existing $template->param() call. Not to be confused with the koha logo on the login page, the icon is a 16x16 pixel graphic in the browser tab. The default is found at .../intranet-tmpl/prog/en/includes/favicon.ico. If the "IntranetFavicon" system preference is set, it should be used by the staff client regardless of login state. It was not being used in the "AUTH rejected" section of Auth.pm, but the OpacFavicon variable was being set. This explains why the "OpacFavicon" system preference works for the OPAC client, but not the staff client upon logout. Signed-off-by: Kyle M Hall --- C4/Auth.pm | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 59c9955..fa6eacb 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -964,6 +964,7 @@ sub checkauth { intranetstylesheet => C4::Context->preference("intranetstylesheet"), intranetbookbag => C4::Context->preference("intranetbookbag"), IntranetNav => C4::Context->preference("IntranetNav"), + IntranetFavicon => C4::Context->preference("IntranetFavicon"), intranetuserjs => C4::Context->preference("intranetuserjs"), IndependantBranches=> C4::Context->preference("IndependantBranches"), AutoLocation => C4::Context->preference("AutoLocation"), -- 1.7.2.5