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:
parent
98b0cc6763
commit
1bf3fcc5e6
@ -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");
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user