]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Add missing parameters
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 7 Sep 2018 11:56:14 +0000 (13:56 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 7 Sep 2018 11:56:14 +0000 (13:56 +0200)
Parameters weren’t passed to the sub function.

src/Wallabag/CoreBundle/Repository/EntryRepository.php

index 34123eea699bff74a0ea1e7b126fd390a8b0dbf0..83379998d203bdc2896195da2ab30fe3a4c79004 100644 (file)
@@ -450,7 +450,7 @@ class EntryRepository extends EntityRepository
      */
     private function getSortedQueryBuilderByUser($userId, $sortBy = 'createdAt', $direction = 'desc')
     {
-        return $this->sortQueryBuilder($this->getQueryBuilderByUser($userId));
+        return $this->sortQueryBuilder($this->getQueryBuilderByUser($userId), $sortBy, $direction);
     }
 
     /**