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
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/