Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit b4570b7

Browse files
committed
fix: cat changefreq
fix: cat url
1 parent 497d30f commit b4570b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

com_kunena.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function getTree($xmap, stdClass $parent, array &$params)
5353

5454
if ($params['cat_priority'] == -1)
5555
{
56-
$params['cat_changefreq'] = $parent->priority;
56+
$params['cat_priority'] = $parent->priority;
5757
}
5858

5959
if ($params['cat_changefreq'] == -1)
@@ -111,14 +111,14 @@ private static function getCategoryTree($xmap, stdClass $parent, array &$params,
111111

112112
foreach ($categories as $cat)
113113
{
114-
$node = new stdclass;
114+
$node = new stdClass;
115115
$node->id = $parent->id;
116116
$node->browserNav = $parent->browserNav;
117117
$node->uid = $parent->uid . '_c_' . $cat->id;
118118
$node->name = $cat->name;
119119
$node->priority = $params['cat_priority'];
120120
$node->changefreq = $params['cat_changefreq'];
121-
$node->link = $cat->getUrl();
121+
$node->link = 'index.php?option=com_kunena&view=category&catid=' . $cat->id . '&Itemid=' . $parent->id;
122122
$node->secure = $parent->secure;
123123

124124
if ($xmap->printNode($node))
@@ -158,7 +158,7 @@ private static function getTopics($xmap, stdClass $parent, array &$params, $cati
158158

159159
foreach ($topics as $topic)
160160
{
161-
$node = new stdclass;
161+
$node = new stdClass;
162162
$node->id = $parent->id;
163163
$node->browserNav = $parent->browserNav;
164164
$node->uid = $parent->uid . '_t_' . $topic->id;
@@ -180,7 +180,7 @@ private static function getTopics($xmap, stdClass $parent, array &$params, $cati
180180

181181
for ($i = 2; $i <= $threadPages; $i++)
182182
{
183-
$subnode = new stdclass;
183+
$subnode = new stdClass;
184184
$subnode->id = $node->id;
185185
$subnode->uid = $node->uid . '_p_' . $i;
186186
$subnode->name = '[' . $i . ']';

0 commit comments

Comments
 (0)