diff --git a/src/mibew/libs/classes/Mibew/Handlebars/Helper/GeneratePaginationHelper.php b/src/mibew/libs/classes/Mibew/Handlebars/Helper/GeneratePaginationHelper.php
index b3a1a825..ac776824 100644
--- a/src/mibew/libs/classes/Mibew/Handlebars/Helper/GeneratePaginationHelper.php
+++ b/src/mibew/libs/classes/Mibew/Handlebars/Helper/GeneratePaginationHelper.php
@@ -29,10 +29,9 @@ use Handlebars\Template;
*
* Example of usage:
*
- * {{generatePagination stylePath paginationInfo bottom}}
+ * {{generatePagination paginationInfo bottom}}
*
* where:
- * - "stylePath" is expression for path to current style.
* - "paginationInfo" is 'info' key from the result of setup_pagination
* function.
* - "bottom": optional argument that indicate if pagination block shoud
@@ -48,16 +47,14 @@ class GeneratePaginationHelper implements HelperInterface
public function execute(Template $template, Context $context, $args, $source)
{
$parsed_args = $template->parseArguments($args);
- if (empty($parsed_args) || count($parsed_args) < 2) {
+ if (empty($parsed_args) || count($parsed_args) < 1) {
return '';
}
- $stylePath = $context->get($parsed_args[0]);
- $pagination_info = $context->get($parsed_args[1]);
- $bottom = empty($parsed_args[2]) ? true : $context->get($parsed_args[2]);
+ $pagination_info = $context->get($parsed_args[0]);
+ $bottom = empty($parsed_args[1]) ? true : $context->get($parsed_args[1]);
$pagination = generate_pagination(
- $stylePath,
$pagination_info,
($bottom === "false") ? false : true
);
diff --git a/src/mibew/libs/pagination.php b/src/mibew/libs/pagination.php
index 511594e8..7ac72247 100644
--- a/src/mibew/libs/pagination.php
+++ b/src/mibew/libs/pagination.php
@@ -142,14 +142,13 @@ function setup_pagination($items, $default_items_per_page = 15)
/**
* Builds HTML markup for pagination pager.
*
- * @param string $style_path Root path of the style.
* @param array $pagination Pagination info. See description of the result of
* pagination_info function for details.
* @param bool $bottom Indicates if pager will be displayed at the bottom of a
* page.
* @return string HTML markup
*/
-function generate_pagination($style_path, $pagination, $bottom = true)
+function generate_pagination($pagination, $bottom = true)
{
$result = getlocal(
'Page {0} of {1}, {2}-{3} from {4}',
diff --git a/src/mibew/styles/dialogs/default/templates_src/server_side/redirect.handlebars b/src/mibew/styles/dialogs/default/templates_src/server_side/redirect.handlebars
index 7c791b41..19c51107 100644
--- a/src/mibew/styles/dialogs/default/templates_src/server_side/redirect.handlebars
+++ b/src/mibew/styles/dialogs/default/templates_src/server_side/redirect.handlebars
@@ -27,6 +27,6 @@
{{/if}}