Skip to content

Commit

Permalink
backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zsoltoroszlany82 committed Nov 26, 2024
1 parent 6481678 commit 20c327b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/admin/controller/feed/ps_google_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ public function index(): void
'href' => $this->url->link('extension/ps_google_base/feed/ps_google_base', 'user_token=' . $this->session->data['user_token'] . '&store_id=' . $store_id)
];

$data['action'] = $this->url->link('extension/ps_google_base/feed/ps_google_base.save', 'user_token=' . $this->session->data['user_token'] . '&store_id=' . $store_id);
$separator = version_compare(VERSION, '4.0.2.0', '>=') ? '.' : '|';

$data['action'] = $this->url->link('extension/ps_google_base/feed/ps_google_base' . $separator . 'save', 'user_token=' . $this->session->data['user_token'] . '&store_id=' . $store_id);

$data['back'] = $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=feed');

Expand Down Expand Up @@ -431,12 +433,13 @@ public function category(): void

$category_total = $this->model_extension_ps_google_base_feed_ps_google_base->getTotalCategories();

$separator = version_compare(VERSION, '4.0.2.0', '>=') ? '.' : '|';

$data['pagination'] = $this->load->controller('common/pagination', [
'total' => $category_total,
'page' => $page,
'limit' => $limit,
'url' => $this->url->link('extension/ps_google_base/feed/ps_google_base.category', 'store_id= ' . $store_id . '&user_token=' . $this->session->data['user_token'] . '&page={page}')
'url' => $this->url->link('extension/ps_google_base/feed/ps_google_base' . $separator . 'category', 'store_id= ' . $store_id . '&user_token=' . $this->session->data['user_token'] . '&page={page}')
]);

$data['results'] = sprintf($this->language->get('text_pagination'), ($category_total) ? (($page - 1) * 10) + 1 : 0, ((($page - 1) * 10) > ($category_total - 10)) ? $category_total : ((($page - 1) * 10) + 10), $category_total, ceil($category_total / 10));
Expand Down

0 comments on commit 20c327b

Please sign in to comment.