[Koha-patches] [PATCH 1/3] Bug 5917 follow-up: Quiet errors in C4::Templates

Jared Camins-Esakov jcamins at bywatersolutions.com
Sun Apr 10 22:12:28 CEST 2011


There were a few errors about unitialized variables in C4::Templates.

Signed-off-by: Jared Camins-Esakov <jcamins at bywatersolutions.com>
---
 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



More information about the Koha-patches mailing list