From 7dae4bca220e2aa94c6f2d424237efff3e50950f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 19 Feb 2015 12:48:44 +0100 Subject: [PATCH] Bug 7843: (qa-followup) Create an RSS feed for news in Opac 1/ use strict and warnings are useless, Modern::Perl is used 2/ Prefer to use the interface and theme TT var instead of the hard coded path --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 2 +- opac/opac-news-rss.pl | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt index 5dd7955..ca86c22 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -48,7 +48,7 @@ [% END %]
- + RSS for the librarys general newsfeed.
[% END %] diff --git a/opac/opac-news-rss.pl b/opac/opac-news-rss.pl index 5250a74..d48fceb 100755 --- a/opac/opac-news-rss.pl +++ b/opac/opac-news-rss.pl @@ -25,10 +25,6 @@ use C4::Output; use C4::NewsChannels; # GetNewsToDisplay use C4::Languages qw(getTranslatedLanguages accept_language); -use strict; -use warnings; - - my $input = new CGI; my $dbh = C4::Context->dbh; -- 2.1.0