Ver Fonte

#4848 Followings menu should be ordered by last added

Alex Trofimov há 1 ano atrás
pai
commit
1f794c96d5
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      template/scripts/BxBaseMenuProfileFollowings.php

+ 1 - 1
template/scripts/BxBaseMenuProfileFollowings.php

@@ -88,7 +88,7 @@ class BxBaseMenuProfileFollowings extends BxTemplMenu
         if(!$iPerPage)
             $iPerPage = $this->_iPerPageDefault;
 
-        $aIds = $this->_oConnection->getConnectedContentByType($iProfile, [$sContextModule], false, $iStart, $iPerPage + 1);
+        $aIds = $this->_oConnection->getConnectedContentByType($iProfile, [$sContextModule], false, $iStart, $iPerPage + 1, BX_CONNECTIONS_ORDER_ADDED_DESC);
 
         $bNext = false;
         if(count($aIds) > $iPerPage) {