mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Fixes #2461 - News Month e_PAGETITLE.
This commit is contained in:
@@ -419,6 +419,8 @@ class news_front
|
||||
|
||||
$title = e107::getParser()->toDate($unix, $format);
|
||||
|
||||
$title = strip_tags($title);
|
||||
|
||||
if(!defined('e_PAGETITLE'))
|
||||
{
|
||||
define('e_PAGETITLE', $title );
|
||||
@@ -1322,8 +1324,9 @@ class news_front
|
||||
}
|
||||
|
||||
|
||||
if (!($news_total = $sql->gen($query)))
|
||||
{ // No news items
|
||||
if (!($news_total = $sql->gen($query))) // No news items
|
||||
{
|
||||
$this->setNewsFrontMeta(null,$this->action);
|
||||
return "<div class='news-empty'><div class='alert alert-info' style='text-align:center'>".$noNewsMessage."</div></div>";
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user