From f9103747adb8dd648848c4398a396a01b2c178e7 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Sun, 10 Apr 2011 12:59:37 -0400 Subject: [PATCH 1/3] Bug 5917 follow-up: Quiet errors in C4::Templates Content-Type: text/plain; charset="UTF-8" There were a few errors about unitialized variables in C4::Templates. Signed-off-by: Jared Camins-Esakov --- C4/Templates.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Templates.pm b/C4/Templates.pm index e81f0dd..ff47c88 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -90,10 +90,10 @@ sub output { $vars->{themelang} .= '/' . $self->theme . '/' . $self->lang; $vars->{yuipath} = ( C4::Context->preference("yuipath") eq "local" - ? $self->{themelang} . "/lib/yui" + ? $vars->{themelang} . "/lib/yui" : C4::Context->preference("yuipath") ); $vars->{interface} = - ( $vars->{interface} ne 'intranet' ? '/opac-tmpl' : '/intranet-tmpl' ); + ( $self->{interface} ne 'intranet' ? '/opac-tmpl' : '/intranet-tmpl' ); $vars->{theme} = $self->theme; $vars->{opaccolorstylesheet} = C4::Context->preference('opaccolorstylesheet'); -- 1.7.2.3