Skip to content

Commit

Permalink
Merge pull request KnpLabs#382 from imanalopher/master
Browse files Browse the repository at this point in the history
Checking without plus operator
  • Loading branch information
roukmoute authored Jan 16, 2017
2 parents ba7b8ea + 3354ca3 commit 683678b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Pagination/SlidingPagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ public function getPaginationData()
'endPage' => $endPage
);

if ($current - 1 > 0) {
if ($current > 1) {
$viewData['previous'] = $current - 1;
}

if ($current + 1 <= $pageCount) {
if ($current < $pageCount) {
$viewData['next'] = $current + 1;
}

Expand Down
15 changes: 15 additions & 0 deletions Resources/translations/KnpPaginatorBundle.ky.xliff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file source-language="en" target-language="de" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="0" resname="label_previous">
<source>label_previous</source>
<target>Мурунку</target>
</trans-unit>
<trans-unit id="1" resname="label_next">
<source>label_next</source>
<target>Кийинки</target>
</trans-unit>
</body>
</file>
</xliff>

0 comments on commit 683678b

Please sign in to comment.