diff --git a/include/class.category.php b/include/class.category.php index 085288f1bf23b0dfe6d9eef20d481c02886121b7..d786e5ee61b2234f998cf87ff4deeb5936c377e3 100644 --- a/include/class.category.php +++ b/include/class.category.php @@ -105,7 +105,7 @@ class Category extends VerySimpleModel { function getTopArticles() { return $this->faqs ->filter(Q::not(array('ispublished'=>0))) - ->order_by('-ispublished', '-views') + ->order_by('-ispublished') ->limit(5); } diff --git a/include/client/kb-categories.inc.php b/include/client/kb-categories.inc.php index 6129180fa8b9a01cf8a66c0e124bdc1c514d447b..236847fb6dbf75439b83d8e08932df4d767e8997 100644 --- a/include/client/kb-categories.inc.php +++ b/include/client/kb-categories.inc.php @@ -22,7 +22,7 @@ </div> <?php foreach ($C->faqs ->exclude(array('ispublished'=>FAQ::VISIBILITY_PRIVATE)) - ->order_by('-views')->limit(5) as $F) { ?> + ->limit(5) as $F) { ?> <div class="popular-faq"><i class="icon-file-alt"></i> <a href="faq.php?id=<?php echo $F->getId(); ?>"> <?php echo $F->getLocalQuestion() ?: $F->getQuestion(); ?>