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

(-)a/C4/Auth.pm (-5 / +2 lines)
Lines 501-508 sub get_template_and_user { Link Here
501
            EnableBorrowerFiles                                                        => C4::Context->preference('EnableBorrowerFiles'),
501
            EnableBorrowerFiles                                                        => C4::Context->preference('EnableBorrowerFiles'),
502
            UseKohaPlugins                                                             => C4::Context->preference('UseKohaPlugins'),
502
            UseKohaPlugins                                                             => C4::Context->preference('UseKohaPlugins'),
503
            UseCourseReserves                                                          => C4::Context->preference("UseCourseReserves"),
503
            UseCourseReserves                                                          => C4::Context->preference("UseCourseReserves"),
504
            useDischarge                                                               => C4::Context->preference('useDischarge'),
504
            useDischarge                                                               => C4::Context->preference('useDischarge')
505
            KOHA_VERSION                                                               => C4::Context->preference('Version'),
506
        );
505
        );
507
    }
506
    }
508
    else {
507
    else {
Lines 576-582 sub get_template_and_user { Link Here
576
            OpacTopissue                          => C4::Context->preference("OpacTopissue"),
575
            OpacTopissue                          => C4::Context->preference("OpacTopissue"),
577
            RequestOnOpac                         => C4::Context->preference("RequestOnOpac"),
576
            RequestOnOpac                         => C4::Context->preference("RequestOnOpac"),
578
            'Version'                             => C4::Context->preference('Version'),
577
            'Version'                             => C4::Context->preference('Version'),
579
            KOHA_VERSION                          => C4::Context->preference('Version'),
580
            hidelostitems                         => C4::Context->preference("hidelostitems"),
578
            hidelostitems                         => C4::Context->preference("hidelostitems"),
581
            mylibraryfirst                        => ( C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv ) ? C4::Context->userenv->{'branch'} : '',
579
            mylibraryfirst                        => ( C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv ) ? C4::Context->userenv->{'branch'} : '',
582
            opaclayoutstylesheet                  => "" . C4::Context->preference("opaclayoutstylesheet"),
580
            opaclayoutstylesheet                  => "" . C4::Context->preference("opaclayoutstylesheet"),
Lines 1292-1299 sub checkauth { Link Here
1292
        PatronSelfRegistration                => C4::Context->preference("PatronSelfRegistration"),
1290
        PatronSelfRegistration                => C4::Context->preference("PatronSelfRegistration"),
1293
        PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"),
1291
        PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"),
1294
        opac_css_override                     => $ENV{'OPAC_CSS_OVERRIDE'},
1292
        opac_css_override                     => $ENV{'OPAC_CSS_OVERRIDE'},
1295
        too_many_login_attempts               => ( $patron and $patron->account_locked ),
1293
        too_many_login_attempts               => ( $patron and $patron->account_locked )
1296
        KOHA_VERSION                          => C4::Context->preference('Version'),
1297
    );
1294
    );
1298
1295
1299
    $template->param( SCO_login => 1 ) if ( $query->param('sco_user_login') );
1296
    $template->param( SCO_login => 1 ) if ( $query->param('sco_user_login') );
(-)a/C4/Templates.pm (-1 / +1 lines)
Lines 241-246 sub gettemplate { Link Here
241
    $template->param(
241
    $template->param(
242
            languages_loop       => $languages_loop,
242
            languages_loop       => $languages_loop,
243
            one_language_enabled => $one_language_enabled,
243
            one_language_enabled => $one_language_enabled,
244
            KOHA_VERSION         => C4::Context->preference('Version')
244
    ) unless $one_language_enabled;
245
    ) unless $one_language_enabled;
245
246
246
    return $template;
247
    return $template;
247
- 

Return to bug 20480