From a54716e50d2099b06f952c7494b9651db3a7a7de Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Sat, 4 Jun 2011 19:51:00 +0200 Subject: [PATCH] Bug 6459 : Needless call to C4::Context->dbh in C4::Templates::themelanguage() As far as I can tell, $dbh is never used again in the scope in which it is created. This patch simply removes the line. Signed-off-by: Chris Cormack --- C4/Templates.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/C4/Templates.pm b/C4/Templates.pm index 8939be59d4..4368492915 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -191,7 +191,6 @@ sub themelanguage { $lang = $languages[0] || 'en'; } my $theme = 'prog'; # in the event of theme failure default to 'prog' -fbcit - my $dbh = C4::Context->dbh; my @themes; if ( $interface eq "intranet" ) { @themes = split " ", C4::Context->preference("template"); -- 2.39.5