projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b5805e
)
Bug 6459 : Needless call to C4::Context->dbh in C4::Templates::themelanguage()
author
Magnus Enger
<magnus@enger.priv.no>
Sat, 4 Jun 2011 17:51:00 +0000
(19:51 +0200)
committer
Chris Cormack
<chrisc@catalyst.net.nz>
Thu, 9 Jun 2011 23:16:36 +0000
(11:16 +1200)
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 <chrisc@catalyst.net.nz>
C4/Templates.pm
patch
|
blob
|
history
diff --git
a/C4/Templates.pm
b/C4/Templates.pm
index
8939be5
..
4368492
100644
(file)
--- 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");