INSERT INTO systempreferences
(variable,value,explanation,options,type)
VALUES
SELECT 'EnhancedMessagingPreferencesOPAC', value,
('EnhancedMessagingPreferencesOPAC',1,
'Show the patrons messaging preferences page in the OPAC',
NULL, 'YesNo'
NULL, 'YesNo');
FROM systempreferences
WHERE variable='EnhancedMessagingPreferences';
my $query = CGI->new();
unless ( C4::Context->preference('EnhancedMessagingPreferencesOPAC') and
C4::Context->preference('EnhancedMessagingPreferences') ) {
print $query->redirect("/cgi-bin/koha/errors/404.pl");
exit;
}
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{
template_name => 'opac-messaging.tt',
-