diff --git a/core/includes/pager.inc b/core/includes/pager.inc index a5869b4..2d102b9 100644 --- a/core/includes/pager.inc +++ b/core/includes/pager.inc @@ -291,18 +291,18 @@ function template_preprocess_pager(&$variables) { * An associative array of query parameters to add to. * @param int $element * An integer to distinguish between multiple pagers on one page. - * @param int $page_no + * @param int $page_number * The page number for the pager that should be set. * * @return array * The altered $query parameter array. */ -function pager_query_add_page(array $query, $element, $page_no) { +function pager_query_add_page(array $query, $element, $page_number) { // The general idea is to create an array with all the needed values and then // use implode to convert it to a string of integers separated by comma. Get // the default values from the request make sure other queries are maintained. $page = \Drupal::request()->query->get('page', ''); - if ($new_page = implode(',', pager_load_array($page_no, $element, explode(',', $page)))) { + if ($new_page = implode(',', pager_load_array($page_number, $element, explode(',', $page)))) { $query['page'] = $new_page; }