diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php b/src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php index 775b0413..8f2bff11 100644 --- a/src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php +++ b/src/Wallabag/CoreBundle/Command/GenerateUrlHashesCommand.php | |||
@@ -66,9 +66,7 @@ class GenerateUrlHashesCommand extends ContainerAwareCommand | |||
66 | 66 | ||
67 | $i = 1; | 67 | $i = 1; |
68 | foreach ($entries as $entry) { | 68 | foreach ($entries as $entry) { |
69 | $entry->setHashedUrl( | 69 | $entry->setHashedUrl(UrlHasher::hashUrl($entry->getUrl())); |
70 | UrlHasher::hashUrl($entry->getUrl()) | ||
71 | ); | ||
72 | $em->persist($entry); | 70 | $em->persist($entry); |
73 | 71 | ||
74 | if (0 === ($i % 20)) { | 72 | if (0 === ($i % 20)) { |
@@ -87,7 +85,7 @@ class GenerateUrlHashesCommand extends ContainerAwareCommand | |||
87 | * | 85 | * |
88 | * @param string $username | 86 | * @param string $username |
89 | * | 87 | * |
90 | * @return \Wallabag\UserBundle\Entity\User | 88 | * @return User |
91 | */ | 89 | */ |
92 | private function getUser($username) | 90 | private function getUser($username) |
93 | { | 91 | { |