Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make talk.lang default to conference default language.

git-svn-id: svn://svn.mongueurs.net/act/trunk@2282 67b57a05-4208-db11-a765-00306e02d86a
  • Loading branch information...
commit cd342a0501685cebb1fb7494b4de37b4e52d448c 1 parent 4c0f5d4
@maddingue maddingue authored
View
3  lib/Act/Handler/Talk/Proceedings.pm
@@ -16,6 +16,9 @@ sub handler {
# make the User object for the speaker
$talk->{user} = Act::User->new( user_id => $talk->user_id );
+ # default language
+ $talk->{lang} ||= $Config->general_default_language;
+
# make a summary of the abstract (some people write long abstracts)
my $abstract = text_summary($talk->abstract, 400);
$talk->{chunked_abstract} = Act::Abstract::chunked($abstract);
View
3  templates/talk/proceedings
@@ -30,8 +30,7 @@
</dd>
<dd class="info">
- [% global.config.talks_languages.${t.lang}
- || global.config.default_language %],
+ [% global.config.talks_languages.${t.lang} %],
[% IF t.lightning %]
{{lightning}}
[% ELSE %]
Please sign in to comment.
Something went wrong with that request. Please try again.