Bug 5917 follow-up: Quiet errors in C4::Templates
authorJared Camins-Esakov <jcamins@bywatersolutions.com>
Sun, 10 Apr 2011 20:12:28 +0000 (16:12 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 10 Apr 2011 20:27:38 +0000 (08:27 +1200)
There were a few errors about unitialized variables in C4::Templates.

Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Templates.pm

index e81f0dd..ff47c88 100644 (file)
@@ -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');