From 2406275bde712dbd2b510bf5d826a7c28acb6c80 Mon Sep 17 00:00:00 2001 From: Mat Fish Date: Mon, 14 Nov 2022 10:24:23 +0200 Subject: [PATCH] fix readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ebfa136..b1c277f 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ E.g, Suppose you have a blog and want to test different per-page values. Here is ```html {% set variant = optimumGetVariant('recordsPerPage') %} {% set perPage = variant is same as ('original') ? 6 : 9 %} // Or use a switch statement if you have more than 2 variants -{% paginate query.limit(variant) as pageInfo, pageEntries %} +{% paginate query.limit(perPage) as pageInfo, pageEntries %} // Pagination code {{ optimumFireEvent('recordsPerPage') | raw }} ```