diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-03-30 16:07:48 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-03-30 16:07:48 +0200 |
commit | 273b6f06584092f3b596406bf4c0d57aa738e8bf (patch) | |
tree | 167c4ba09d219bf890d2a282d52a34ee1656f7c5 /src | |
parent | 90f95027a8c713047fc436bce271cb3e52bc3dee (diff) | |
download | wallabag-273b6f06584092f3b596406bf4c0d57aa738e8bf.tar.gz wallabag-273b6f06584092f3b596406bf4c0d57aa738e8bf.tar.zst wallabag-273b6f06584092f3b596406bf4c0d57aa738e8bf.zip |
Rename method from *username to *user
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 2 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index f7398e69..8d2ac6d4 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -227,7 +227,7 @@ class EntryController extends Controller | |||
227 | public function showUnreadAction(Request $request, $page) | 227 | public function showUnreadAction(Request $request, $page) |
228 | { | 228 | { |
229 | // load the quickstart if no entry in database | 229 | // load the quickstart if no entry in database |
230 | if ($page == 1 && $this->get('wallabag_core.entry_repository')->countAllEntriesByUsername($this->getUser()->getId()) == 0) { | 230 | if ($page == 1 && $this->get('wallabag_core.entry_repository')->countAllEntriesByUser($this->getUser()->getId()) == 0) { |
231 | return $this->redirect($this->generateUrl('quickstart')); | 231 | return $this->redirect($this->generateUrl('quickstart')); |
232 | } | 232 | } |
233 | 233 | ||
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 4071301d..9325d261 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -328,7 +328,7 @@ class EntryRepository extends EntityRepository | |||
328 | * | 328 | * |
329 | * @return int | 329 | * @return int |
330 | */ | 330 | */ |
331 | public function countAllEntriesByUsername($userId) | 331 | public function countAllEntriesByUser($userId) |
332 | { | 332 | { |
333 | $qb = $this->createQueryBuilder('e') | 333 | $qb = $this->createQueryBuilder('e') |
334 | ->select('count(e)') | 334 | ->select('count(e)') |