Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Update incorrect option name to use same as Pagerfanta >= 1.1.0
Browse files Browse the repository at this point in the history
These changes were originally in #189, but I've brought them across into this branch as they require Pagerfanta >= 1.1.0
  • Loading branch information
Sam Partington committed May 17, 2018
1 parent b8410e9 commit 9ba3cdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tests/View/DefaultTranslatedViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected function translatedViewClass()

protected function previousMessageOption()
{
return 'previous_message';
return 'prev_message';
}

protected function nextMessageOption()
Expand All @@ -47,4 +47,4 @@ protected function translatedViewName()
{
return 'default_translated';
}
}
}
2 changes: 1 addition & 1 deletion TestsProject/app/config_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ services:
class: Pagerfanta\View\OptionableView
arguments:
- '@pagerfanta.view.default'
- { proximity: 2, previous_message: Anterior, next_message: Siguiente }
- { proximity: 2, prev_message: Anterior, next_message: Siguiente }
public: false
tags: [{ name: pagerfanta.view, alias: my_view_1 }]
2 changes: 1 addition & 1 deletion View/DefaultTranslatedView.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DefaultTranslatedView extends TranslatedView
{
protected function previousMessageOption()
{
return 'previous_message';
return 'prev_message';
}

protected function nextMessageOption()
Expand Down

0 comments on commit 9ba3cdf

Please sign in to comment.