View | Details | Raw Unified | Return to bug 14120
Collapse All | Expand All

(-)a/C4/Auth.pm (-1 / +1 lines)
Lines 252-258 sub get_template_and_user { Link Here
252
252
253
        if ($flags) {
253
        if ($flags) {
254
            foreach my $module ( keys %$all_perms ) {
254
            foreach my $module ( keys %$all_perms ) {
255
                if ( $flags->{$module} == 1 ) {
255
                if ( defined($flags->{$module}) && $flags->{$module} == 1 ) {
256
                    foreach my $subperm ( keys %{ $all_perms->{$module} } ) {
256
                    foreach my $subperm ( keys %{ $all_perms->{$module} } ) {
257
                        $template->param( "CAN_user_${module}_${subperm}" => 1 );
257
                        $template->param( "CAN_user_${module}_${subperm}" => 1 );
258
                    }
258
                    }
(-)a/C4/Templates.pm (-1 / +1 lines)
Lines 161-166 sub _get_template_file { Link Here
161
    my $is_intranet = $interface eq 'intranet';
161
    my $is_intranet = $interface eq 'intranet';
162
    my $htdocs = C4::Context->config($is_intranet ? 'intrahtdocs' : 'opachtdocs');
162
    my $htdocs = C4::Context->config($is_intranet ? 'intrahtdocs' : 'opachtdocs');
163
    my ($theme, $lang, $availablethemes) = themelanguage($htdocs, $tmplbase, $interface, $query);
163
    my ($theme, $lang, $availablethemes) = themelanguage($htdocs, $tmplbase, $interface, $query);
164
    $lang //= 'en';
164
    my $filename = "$htdocs/$theme/$lang/modules/$tmplbase";
165
    my $filename = "$htdocs/$theme/$lang/modules/$tmplbase";
165
166
166
    return ($htdocs, $theme, $lang, $filename);
167
    return ($htdocs, $theme, $lang, $filename);
167
- 

Return to bug 14120