Bugzilla – Attachment 4358 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]
Proposed patch
0001-Needless-call-to-C4-Context-dbh-in-C4-Templates-them.patch (text/plain), 896 bytes, created by
Magnus Enger
on 2011-06-04 17:53:59 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2011-06-04 17:53:59 UTC
Size:
896 bytes
patch
obsolete
>From 6679c3846093fcb03103c4135e9430d6f2dcee57 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] 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. >--- > 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