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

(-)a/installer/data/mysql/atomicupdate/Bug-9254-Add-OPACEnhancedMessagingPreferences-system-preference.sql (-5 / +6 lines)
Lines 1-6 Link Here
1
INSERT INTO systempreferences
1
INSERT INTO systempreferences
2
    (variable,value,explanation,options,type)
2
       (variable,value,explanation,options,type)
3
VALUES
3
SELECT 'EnhancedMessagingPreferencesOPAC', value,
4
    ('EnhancedMessagingPreferencesOPAC',1,
4
       'Show the patrons messaging preferences page in the OPAC',
5
     'Show the patrons messaging preferences page in the OPAC',
5
       NULL, 'YesNo'
6
     NULL, 'YesNo');
6
FROM systempreferences
7
WHERE variable='EnhancedMessagingPreferences';
(-)a/opac/opac-messaging.pl (-1 / +6 lines)
Lines 35-40 use C4::Form::MessagingPreferences; Link Here
35
35
36
my $query = CGI->new();
36
my $query = CGI->new();
37
37
38
unless ( C4::Context->preference('EnhancedMessagingPreferencesOPAC') and
39
         C4::Context->preference('EnhancedMessagingPreferences') ) {
40
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
41
    exit;
42
}
43
38
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
44
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
39
    {
45
    {
40
        template_name   => 'opac-messaging.tt',
46
        template_name   => 'opac-messaging.tt',
41
- 

Return to bug 9254