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:
parent
cb10626c05
commit
5bbc5834d8
|
|
@ -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 %]
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue