[Koha-cvs] koha/tools koha-news.pl [rel_3_0]
Joshua Ferraro
jmf at liblime.com
Tue Feb 20 07:23:33 CET 2007
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: Joshua Ferraro <kados> 07/02/20 06:23:33
Modified files:
tools : koha-news.pl
Log message:
remove GetLanguages, replace with getTranslatedLanguages
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/tools/koha-news.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.6&r2=1.1.2.7
Patches:
Index: koha-news.pl
===================================================================
RCS file: /sources/koha/koha/tools/koha-news.pl,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -b -r1.1.2.6 -r1.1.2.7
--- koha-news.pl 10 Jan 2007 14:14:32 -0000 1.1.2.6
+++ koha-news.pl 20 Feb 2007 06:23:33 -0000 1.1.2.7
@@ -56,11 +56,11 @@
# get lang list
my @lang_list;
-foreach my $language ( GetLanguages() ) {
+foreach my $language ( getTranslatedLanguages() ) {
push @lang_list,
{
- language => $language,
- selected => ( $new_detail->{lang} eq $language ? 1 : 0 ),
+ language => $language->{'language_code'},
+ selected => ( $new_detail->{lang} eq $language->{'language_code'} ? 1 : 0 ),
};
}
More information about the Koha-cvs
mailing list