Bugzilla – Attachment 4385 Details for
Bug 6459
Needless call to C4::Context->dbh in C4::Templates::themelanguage()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6459 : Needless call to C4::Context->dbh in C4::Templates::themelanguage()
Bug-6459--Needless-call-to-C4Context-dbh-in-C4Temp.patch (text/plain), 960 bytes, created by
Chris Cormack
on 2011-06-06 20:26:13 UTC
(
hide
)
Description:
Bug 6459 : Needless call to C4::Context->dbh in C4::Templates::themelanguage()
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-06-06 20:26:13 UTC
Size:
960 bytes
patch
obsolete
>From 7793c11ef13ba1083890be9ef49c64c8beef731f Mon Sep 17 00:00:00 2001 >From: Magnus Enger <magnus@enger.priv.no> >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 <chrisc@catalyst.net.nz> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6459
:
4358
| 4385