]> git.koha-community.org Git - koha.git/commit
Bug 16371: Combine get_daily_quote and get_daily_quote_for_interface
authorEmmi Takkinen <emmi.takkinen@outlook.com>
Fri, 31 Jul 2020 06:47:56 +0000 (09:47 +0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 13 Aug 2020 08:15:33 +0000 (10:15 +0200)
commit831296be7a1947fd8aeed64862dbad6358c9875f
tree3c77e1ccb638ef00c4ddd55cc1a3cd35bc6932f5
parent103e182a50d56858bbbfb159b8eba4f7d21954d4
Bug 16371: Combine get_daily_quote and get_daily_quote_for_interface

This patch combines get_daily_quote and get_daily_quote_for_interface
methods and moves them from Koha::Quote to Koha::Quotes. Also removes
some unused code and adjusts datetime parsing.

To test apply this patch and confirm 'QuoteOfTheDay' syspref still
works as expected (quote is shown in correct mainpage(s)).

Also prove t/db_dependent/Koha/Quotes.t

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Exceptions.pm
Koha/Quote.pm
Koha/Quotes.pm
mainpage.pl
opac/opac-main.pl
t/db_dependent/Koha/Quotes.t