[Koha-patches] [PATCH] Needless call to C4::Context->dbh in C4::Templates::themelanguage()

Magnus Enger magnus at enger.priv.no
Sat Jun 4 19:52:40 CEST 2011


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.
---
 C4/Templates.pm |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/C4/Templates.pm b/C4/Templates.pm
index 8939be5..4368492 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");
-- 
1.7.4.1



More information about the Koha-patches mailing list