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 c077e80e8..1e8730606 100644 --- a/src/views/elements/TrendingElement.php +++ b/src/views/elements/TrendingElement.php @@ -180,11 +180,10 @@ class TrendingElement extends Element !empty($highlight['DATA'])) { $category = ($highlight['CATEGORY'] == 'news') ? "" : "category=" . $highlight['CATEGORY']; - $order = (($highlight['ORDER'] == 'SCORE_DESC')) ? "" : - "order=" . $highlight['ORDER']; $trending_url = C\SHORT_BASE_URL . "?q=trending:" . $highlight['CATEGORY']; - if (!empty($order)) { + if (!empty($highlight['ORDER']) && + strtolower($highlight['ORDER']) != 'score_desc') { $trending_url .= ":" . $highlight['ORDER']; } if (!empty($token_query)) {