[Koha-patches] [PATCH] Changes Added to existing LTFL code to give option of placing LTFL content in Tabs on OPAC details page

Joe Atzberger joe.atzberger at liblime.com
Wed Apr 1 22:35:45 CEST 2009


On Wed, Apr 1, 2009 at 2:03 PM, Christopher Hyde <chyde at ebpl.org> wrote:

> +# LibraryThingForLibraries
> +if( C4::Context->preference('LibraryThingForLibrariesEnabled') )
> +{
> + $template->param(LibraryThingForLibrariesID =>
> +C4::Context->preference('LibraryThingForLibrariesID') );
> +}
> +if( C4::Context->preference('LibraryThingForLibrariesEnabled') )
> +{
> + $template->param(LibraryThingForLibrariesTabbedView =>
> +C4::Context->preference('LibraryThingForLibrariesTabbedView') );
> +}
>

Why repeat the same conditional twice?  Just put both assignments in the
first one.
--Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20090401/8c197587/attachment-0002.htm>


More information about the Koha-patches mailing list