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

Signed-off-by: Pierre <tredok.pierre@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2015-02-19 12:48:44 +01:00 committed by Tomas Cohen Arazi
parent cb10626c05
commit 5bbc5834d8
2 changed files with 1 additions and 5 deletions

View File

@ -48,7 +48,7 @@
[% END %]
</div>
<div id="rssnews-container">
<a href="opac-news-rss.pl"><img src="/opac-tmpl/bootstrap/images/feed-icon-16x16.png"></a>
<a href="opac-news-rss.pl"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a>
RSS for the librarys general newsfeed.
</div>
[% END %]

View File

@ -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;