viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

Fix url on trending Chart, a=chris

Chris Pollett [2020-06-21 22:Jun:st]
Fix url on trending Chart, a=chris
Filename
src/views/elements/TrendingElement.php
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;
ViewGit