From: Joe Atzberger Date: Thu, 4 Jun 2009 17:43:52 +0000 (-0500) Subject: Pull the last OPAC-specific tmpl vars out of gettemplate. X-Git-Tag: n_acq_a_porter~26^2~134 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=f35b144668d48723ff806b7692b62ba93f57d142;p=koha.git Pull the last OPAC-specific tmpl vars out of gettemplate. These don't belong every template, only on OPAC: ~ opacstylesheet ~ opaccolorstylesheet ~ opacsmallimage The latter 2 were already being populated in C4::Auth anyway. Signed-off-by: Galen Charlton --- diff --git a/C4/Auth.pm b/C4/Auth.pm index f24f9af540..f26825d9aa 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -357,12 +357,13 @@ sub get_template_and_user { XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"), hidelostitems => C4::Context->preference("hidelostitems"), mylibraryfirst => (C4::Context->preference("SearchMyLibraryFirst")) ? C4::Context->userenv->{'branch'} : '', + opaclayoutstylesheet => "" . C4::Context->preference("opaclayoutstylesheet"), + opaccolorstylesheet => "" . C4::Context->preference("opaccolorstylesheet"), + opacstylesheet => "" . C4::Context->preference("opacstylesheet"), opacbookbag => "" . C4::Context->preference("opacbookbag"), - opaccolorstylesheet => "". C4::Context->preference("opaccolorstylesheet"), opaccredits => "" . C4::Context->preference("opaccredits"), opacheader => "" . C4::Context->preference("opacheader"), - opaclanguagesdisplay => "". C4::Context->preference("opaclanguagesdisplay"), - opaclayoutstylesheet => "". C4::Context->preference("opaclayoutstylesheet"), + opaclanguagesdisplay => "" . C4::Context->preference("opaclanguagesdisplay"), opacreadinghistory => C4::Context->preference("opacreadinghistory"), opacsmallimage => "" . C4::Context->preference("opacsmallimage"), opacuserjs => C4::Context->preference("opacuserjs"), diff --git a/C4/Output.pm b/C4/Output.pm index 6604ae07c0..a147bfdea3 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -100,13 +100,10 @@ sub gettemplate { . "/$theme/$lang"; $template->param( themelang => $themelang, - yuipath => (C4::Context->preference("yuipath") eq "local"?"$themelang/lib/yui":C4::Context->preference("yuipath")), + yuipath => (C4::Context->preference("yuipath") eq "local"?"$themelang/lib/yui":C4::Context->preference("yuipath")), interface => ( $interface ne 'intranet' ? '/opac-tmpl' : '/intranet-tmpl' ), - theme => $theme, - opacstylesheet => $opacstylesheet, - opaccolorstylesheet => C4::Context->preference('opaccolorstylesheet'), - opacsmallimage => C4::Context->preference('opacsmallimage'), - lang => $lang + theme => $theme, + lang => $lang ); # Bidirectionality