fix bug in help URL formation. Fixes #48
Tara L Andrews [Sun, 30 Nov 2014 14:41:42 +0000 (15:41 +0100)]
lib/stemmaweb/Controller/Relation.pm

index 1c3bf8e..24d1de3 100644 (file)
@@ -133,7 +133,7 @@ sub main :Chained('text') :PathPart('') :Args(0) {
        $c->stash->{'startseg'} = $startseg if defined $startseg;
        $c->stash->{'svg_string'} = $svg_str;
        $c->stash->{'text_title'} = $tradition->name;
-       if( $tradition->can('language') ) {
+       if( $tradition->can('language') && $tradition->language ) {
                $c->stash->{'text_lang'} = $tradition->language;
                $c->stash->{'can_morphologize'} = 1;
        } else {