]> git.koha-community.org Git - koha.git/commit
Bug 16371: Move GetDailyQuote to get_daily_quote
authorEmmi Takkinen <emmi.takkinen@outlook.com>
Fri, 17 Apr 2020 08:28:55 +0000 (11:28 +0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 13 Aug 2020 08:15:33 +0000 (10:15 +0200)
commitf32f92cb577e01d638b1adbc3f065b511eb77d4a
tree6b60e344496fa0e3407220e376494be8b87dc839
parent4c01343a360419752f6c5e198ee22e6857b5d670
Bug 16371: Move GetDailyQuote to get_daily_quote

This patch moves subroutine 'GetDailyQuote' to new
Koha::Quote object and adjusts tests.

To test:
1. Set 'QuoteOfTheDay' as 'enable'
2. Check that quote is displayed on OPAC mainpage

Prove t/db_dependent/Koha/GetDailyQuote.t

Sponsored-by: Koha-Suomi Oy
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Koha.pm
Koha/Quote.pm
opac/opac-main.pl
t/db_dependent/Koha/GetDailyQuote.t