Unfortunately, this doesn't take into account that opaclanguages and
languages sysprefs can be comma separated. 

Cheers,

Josh

On Mon, Jun 02, 2008 at 03:39:13PM +0200, [EMAIL PROTECTED] wrote:
> From: Paul POULAIN <[EMAIL PROTECTED]>
> 
> diff --git a/opac/opac-main.pl b/opac/opac-main.pl
> index e7b5ec3..2faae0e 100755
> --- a/opac/opac-main.pl
> +++ b/opac/opac-main.pl
> @@ -66,9 +66,9 @@ $template->param(
>  );
>  
>  # display news
> -# use cookie setting for language, bug default to syspref if it's not set
> -my $news_lang = $input->cookie('KohaOpacLanguage')
> -  || C4::Context->preference('opaclanguages');
> +# use cookie setting for language, bug default to english if it's not set
> +# FIXME : when the http_accept_language feature will be fixed the || 'en' 
> will be useless
> +my $news_lang = $input->cookie('KohaOpacLanguage') || 'en';
>  my $all_koha_news   = &GetNewsToDisplay($news_lang);
>  my $koha_news_count = scalar @$all_koha_news;
>  
> -- 
> 1.5.3.2
> 
> _______________________________________________
> Koha-patches mailing list
> [email protected]
> http://lists.koha.org/mailman/listinfo/koha-patches
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to