Commit 06b2caaf authored by changi67's avatar changi67

[FIX] typo + wrong param to function needed, tsort_mode given

parent b42d35fb
......@@ -97,7 +97,7 @@ if (empty($_REQUEST['maxPopular'])) {
if (empty($_REQUEST['tsort_mode'])) {
$tsort_mode = 'tag_asc';
} else {
$tsort_mode = $_REQUEST['sort_mode'];
$tsort_mode = $_REQUEST['tsort_mode'];
$smarty->assign_by_ref('tsort_mode', $tsort_mode);
}
if (!empty($_REQUEST['objectId'])) {
......@@ -111,7 +111,7 @@ if ($prefs['feature_blogs'] == 'y' && $type == 'blog post') {
$smarty->assign('blogs', $blogs['data']);
}
$most_popular_tags = $freetaglib->get_most_popular_tags('', 0, $maxPopular, $tsort_mode, $objectId);
$most_popular_tags = $freetaglib->get_most_popular_tags('', 0, $maxPopular, $type, $objectId);
if (!empty($prefs['freetags_cloud_colors'])) {
$colors = explode(',', $prefs['freetags_cloud_colors']);
$prev = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment