mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Fix: News sitelink submenu category function was generating bad links when SEFURLs was disabled.
This commit is contained in:
@@ -78,9 +78,11 @@ class news_sitelink // include plugin-folder in the name.
|
||||
{
|
||||
while($row = $sql->fetch())
|
||||
{
|
||||
|
||||
$row['id'] = $row['category_id'];
|
||||
$sublinks[] = array(
|
||||
'link_name' => $row['category_name'],
|
||||
'link_url' => e107::getUrl()->create($urlPath, $row, array('allow' => 'category_sef,category_name,category_id')), // 'news.php?extend.'.$row['news_id'],
|
||||
'link_url' => e107::getUrl()->create($urlPath, $row, array('allow' => 'id,category_sef,category_name,category_id')), // 'news.php?extend.'.$row['news_id'],
|
||||
'link_description' => $row['category_meta_description'],
|
||||
'link_button' => '',
|
||||
'link_category' => '',
|
||||
|
@@ -717,6 +717,11 @@ class news_front
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$this->addDebug("Query",str_replace('#',MPREFIX, $query));
|
||||
}
|
||||
|
||||
|
||||
if($this->action == 'cat')
|
||||
@@ -1257,7 +1262,6 @@ class news_front
|
||||
|
||||
if (!($news_total = $sql->gen($query)))
|
||||
{ // No news items
|
||||
|
||||
return "<div class='news-empty'><div class='alert alert-info' style='text-align:center'>".$noNewsMessage."</div></div>";
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user