viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]
diff --git a/src/views/elements/TrendingElement.php b/src/views/elements/TrendingElement.php index 1e8730606..e64c207b0 100644 --- a/src/views/elements/TrendingElement.php +++ b/src/views/elements/TrendingElement.php @@ -259,10 +259,10 @@ class TrendingElement extends Element $search_url = C\SHORT_BASE_URL . "?"; $added_term = " media:" . $data['CATEGORY']; } - if (empty($token_query)) { - $trending_url = B\controllerUrl('trending'); - } else { - $trending_url = B\controllerUrl('trending', true) . $token_query; + $trending_url = C\SHORT_BASE_URL . "?q=" . "trending:" . + $data['CATEGORY']; + if (!empty($token_query)) { + $trending_url .= $token_query; } $terms_string = ""; $dash_state = 0;