blib/lib/YATT/Lite/WebMVC0/Partial/LangSwitch.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 20 | 0.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
41 | 0 | 0 | 0 | not $user and my $sub = $self->can('load_current_user') |
54 | 0 | 0 | 0 | do { $ck_lang ne $lang unless not $ck_lang } && do { $con->set_cookie($lang_key, $lang, -'path', $con->site_location) } |
56 | 0 | 0 | 0 | $user and $sub = $user->can('pref_lang') |
0 | 0 | 0 | $user and $sub = $user->can('pref_lang') and my $ul = &$sub($user) |
line | l | !l | condition |
---|---|---|---|
22 | 0 | 0 | $self->{'cf_default_lang'} // 'en' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
68 | 0 | 0 | 0 | $con->accept_language('filter', $self->{'cf_lang_list'} // ['en', 'ja']) || $yatt->default_lang |
0 | 0 | 0 | $lang ||= $con->accept_language('filter', $self->{'cf_lang_list'} // ['en', 'ja']) || $yatt->default_lang |