diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-07-09 11:53:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-09 11:53:20 +0200 |
commit | 4f4633008725e8cc7a760047f501fbed488def6f (patch) | |
tree | b15d68d51565dfde13b6b7fe7a2fc4c1bc5ecc7f /src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php | |
parent | 8effd6e99e5a1f1d0d663ee77b0f5015220d1b4a (diff) | |
parent | 41022cb289f5d08418ccb2d7050098c4ee3721e4 (diff) | |
download | wallabag-4f4633008725e8cc7a760047f501fbed488def6f.tar.gz wallabag-4f4633008725e8cc7a760047f501fbed488def6f.tar.zst wallabag-4f4633008725e8cc7a760047f501fbed488def6f.zip |
Merge pull request #4053 from wallabag/feature/manual-input-reading-speed
Add ability to manually define the reading speed
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php b/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php index 37d0640a..8a575b68 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php | |||
@@ -54,8 +54,8 @@ class EntryFilterType extends AbstractType | |||
54 | $lower = $values['value']['left_number'][0]; | 54 | $lower = $values['value']['left_number'][0]; |
55 | $upper = $values['value']['right_number'][0]; | 55 | $upper = $values['value']['right_number'][0]; |
56 | 56 | ||
57 | $min = (int) ($lower * $this->user->getConfig()->getReadingSpeed()); | 57 | $min = (int) ($lower * $this->user->getConfig()->getReadingSpeed() / 200); |
58 | $max = (int) ($upper * $this->user->getConfig()->getReadingSpeed()); | 58 | $max = (int) ($upper * $this->user->getConfig()->getReadingSpeed() / 200); |
59 | 59 | ||
60 | if (null === $lower && null === $upper) { | 60 | if (null === $lower && null === $upper) { |
61 | // no value? no filter | 61 | // no value? no filter |