From e766a92b988c8f929121760d35fabcd89e0cfb0b Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Sun, 10 Apr 2011 16:12:28 -0400 Subject: [PATCH] Bug 5917 follow-up: Quiet errors in C4::Templates There were a few errors about unitialized variables in C4::Templates. Signed-off-by: Jared Camins-Esakov Signed-off-by: Chris Cormack --- C4/Templates.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Templates.pm b/C4/Templates.pm index e81f0dd9f5..ff47c88cca 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'); -- 2.39.5