Is a wrapper for get_daily_quote(), with an extra check for using the correct
interface defined in the syspref 'QuoteOfTheDay'.
-If the current interface is not allowed to display quotes, then returns undef.
+If the current interface is not allowed to display quotes, then returns nothing.
=cut
Koha::Exceptions::UnknownProgramState->throw(error => $cc[3]."()> C4::Context->interface() is not set! Don't know are you in OPAC or staff client?");
}
unless ($qotdPref =~ /$interface/) {
- return undef;
+ return;
}
return $self->get_daily_quote(%opts);
<div id="area-news">
<h3>Quote of the Day</h3>
<div class="newsitem">
- <span id="daily-quote-text">[% daily_quote.text %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source %]</span>
+ <span id="daily-quote-text">[% daily_quote.text | html %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source | html %]</span>
</div>
</div>
[% END %]