1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 05:02:02 +02:00

#2694 - Correct message when no news items are found on specific day

This commit is contained in:
Tijn Kuyper 2019-09-25 11:27:11 +02:00
parent 98b0cc6763
commit 1bf3fcc5e6
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2
2 changed files with 9 additions and 1 deletions

View File

@ -46,6 +46,7 @@ define("LAN_NEWS_86", "Older News");
define("LAN_NEWS_87", "Newer News");
define("LAN_NEWS_462", "No news items for specified month");
define("LAN_NEWS_463", "There are no news items for the specified category - please check back soon.");
define("LAN_NEWS_464", "No news items for specified day");
// Following used by alt_news
// define("LAN_NEWS_99", "Comments");

View File

@ -1420,7 +1420,14 @@ class news_front
AND (FIND_IN_SET('0', n.news_render_type) OR FIND_IN_SET(1, n.news_render_type)) AND n.news_datestamp BETWEEN {$startdate} AND {$enddate}
ORDER BY ".$this->order." DESC LIMIT ".intval($this->from).",".ITEMVIEW;
$noNewsMessage = LAN_NEWS_462;
if($this->action == 'month')
{
$noNewsMessage = LAN_NEWS_462;
}
else
{
$noNewsMessage = LAN_NEWS_464;
}
break;