{"action":"created","comment":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/51743188","id":51743188,"diff_hunk":"@@ -367,12 +367,21 @@ protected function getTemplateVarPagination(\n             )\n         ;\n \n-        return array_map(function ($link) {\n-            $link['url'] = $this->updateQueryString([\n-                'page'  => $link['page']\n-            ]);\n-            return $link;\n-        }, $pagination->buildLinks());\n+        $totalItems = $result->getTotalProductsCount();\n+        $itemsShowedFrom = ($query->getResultsPerPage() * ($query->getPage() - 1)) + 1;\n+        $itemsShowedTo = $query->getResultsPerPage() * $query->getPage();","path":"classes/controller/ProductListingFrontController.php","position":12,"original_position":12,"commit_id":"3cacf8b612271a9fb119df7ed47eabc62d5fa6c2","original_commit_id":"3cacf8b612271a9fb119df7ed47eabc62d5fa6c2","user":{"login":"djfm","id":1460499,"avatar_url":"https://avatars.githubusercontent.com/u/1460499?v=3","gravatar_id":"","url":"https://api.github.com/users/djfm","html_url":"https://github.com/djfm","followers_url":"https://api.github.com/users/djfm/followers","following_url":"https://api.github.com/users/djfm/following{/other_user}","gists_url":"https://api.github.com/users/djfm/gists{/gist_id}","starred_url":"https://api.github.com/users/djfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djfm/subscriptions","organizations_url":"https://api.github.com/users/djfm/orgs","repos_url":"https://api.github.com/users/djfm/repos","events_url":"https://api.github.com/users/djfm/events{/privacy}","received_events_url":"https://api.github.com/users/djfm/received_events","type":"User","site_admin":false},"body":"show**n**","created_at":"2016-02-03T16:14:00Z","updated_at":"2016-02-03T16:14:00Z","html_url":"https://github.com/PrestaShop/PrestaShop/pull/4868#discussion_r51743188","pull_request_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4868","_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/51743188"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/4868#discussion_r51743188"},"pull_request":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4868"}}},"pull_request":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4868","id":58140358,"html_url":"https://github.com/PrestaShop/PrestaShop/pull/4868","diff_url":"https://github.com/PrestaShop/PrestaShop/pull/4868.diff","patch_url":"https://github.com/PrestaShop/PrestaShop/pull/4868.patch","issue_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/4868","number":4868,"state":"open","locked":false,"title":"// Add some pagination infos","user":{"login":"maximebiloe","id":2203436,"avatar_url":"https://avatars.githubusercontent.com/u/2203436?v=3","gravatar_id":"","url":"https://api.github.com/users/maximebiloe","html_url":"https://github.com/maximebiloe","followers_url":"https://api.github.com/users/maximebiloe/followers","following_url":"https://api.github.com/users/maximebiloe/following{/other_user}","gists_url":"https://api.github.com/users/maximebiloe/gists{/gist_id}","starred_url":"https://api.github.com/users/maximebiloe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximebiloe/subscriptions","organizations_url":"https://api.github.com/users/maximebiloe/orgs","repos_url":"https://api.github.com/users/maximebiloe/repos","events_url":"https://api.github.com/users/maximebiloe/events{/privacy}","received_events_url":"https://api.github.com/users/maximebiloe/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-03T13:59:30Z","updated_at":"2016-02-03T16:14:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2ef1888912c90c8a6d6f1e5f35d1d1a11f4d1c9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4868/commits","review_comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4868/comments","review_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/4868/comments","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/3cacf8b612271a9fb119df7ed47eabc62d5fa6c2","head":{"label":"maximebiloe:starter-theme/feat/pagination","ref":"starter-theme/feat/pagination","sha":"3cacf8b612271a9fb119df7ed47eabc62d5fa6c2","user":{"login":"maximebiloe","id":2203436,"avatar_url":"https://avatars.githubusercontent.com/u/2203436?v=3","gravatar_id":"","url":"https://api.github.com/users/maximebiloe","html_url":"https://github.com/maximebiloe","followers_url":"https://api.github.com/users/maximebiloe/followers","following_url":"https://api.github.com/users/maximebiloe/following{/other_user}","gists_url":"https://api.github.com/users/maximebiloe/gists{/gist_id}","starred_url":"https://api.github.com/users/maximebiloe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximebiloe/subscriptions","organizations_url":"https://api.github.com/users/maximebiloe/orgs","repos_url":"https://api.github.com/users/maximebiloe/repos","events_url":"https://api.github.com/users/maximebiloe/events{/privacy}","received_events_url":"https://api.github.com/users/maximebiloe/received_events","type":"User","site_admin":false},"repo":{"id":31961513,"name":"PrestaShop","full_name":"maximebiloe/PrestaShop","owner":{"login":"maximebiloe","id":2203436,"avatar_url":"https://avatars.githubusercontent.com/u/2203436?v=3","gravatar_id":"","url":"https://api.github.com/users/maximebiloe","html_url":"https://github.com/maximebiloe","followers_url":"https://api.github.com/users/maximebiloe/followers","following_url":"https://api.github.com/users/maximebiloe/following{/other_user}","gists_url":"https://api.github.com/users/maximebiloe/gists{/gist_id}","starred_url":"https://api.github.com/users/maximebiloe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximebiloe/subscriptions","organizations_url":"https://api.github.com/users/maximebiloe/orgs","repos_url":"https://api.github.com/users/maximebiloe/repos","events_url":"https://api.github.com/users/maximebiloe/events{/privacy}","received_events_url":"https://api.github.com/users/maximebiloe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maximebiloe/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open-source e-commerce solution.","fork":true,"url":"https://api.github.com/repos/maximebiloe/PrestaShop","forks_url":"https://api.github.com/repos/maximebiloe/PrestaShop/forks","keys_url":"https://api.github.com/repos/maximebiloe/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maximebiloe/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maximebiloe/PrestaShop/teams","hooks_url":"https://api.github.com/repos/maximebiloe/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/maximebiloe/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/maximebiloe/PrestaShop/events","assignees_url":"https://api.github.com/repos/maximebiloe/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/maximebiloe/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/maximebiloe/PrestaShop/tags","blobs_url":"https://api.github.com/repos/maximebiloe/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maximebiloe/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maximebiloe/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/maximebiloe/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maximebiloe/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/maximebiloe/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/maximebiloe/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/maximebiloe/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/maximebiloe/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/maximebiloe/PrestaShop/subscription","commits_url":"https://api.github.com/repos/maximebiloe/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/maximebiloe/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/maximebiloe/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/maximebiloe/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/maximebiloe/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/maximebiloe/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maximebiloe/PrestaShop/merges","archive_url":"https://api.github.com/repos/maximebiloe/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maximebiloe/PrestaShop/downloads","issues_url":"https://api.github.com/repos/maximebiloe/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/maximebiloe/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/maximebiloe/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/maximebiloe/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maximebiloe/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/maximebiloe/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/maximebiloe/PrestaShop/deployments","created_at":"2015-03-10T14:21:51Z","updated_at":"2016-02-01T10:16:23Z","pushed_at":"2016-02-03T15:56:31Z","git_url":"git://github.com/maximebiloe/PrestaShop.git","ssh_url":"git@github.com:maximebiloe/PrestaShop.git","clone_url":"https://github.com/maximebiloe/PrestaShop.git","svn_url":"https://github.com/maximebiloe/PrestaShop","homepage":"http://www.prestashop.com/","size":230687,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"PrestaShop:feat/starter-theme","ref":"feat/starter-theme","sha":"48a43425ccee145f587da0594456927cf7510854","user":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars.githubusercontent.com/u/2815696?v=3","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"repo":{"id":6763587,"name":"PrestaShop","full_name":"PrestaShop/PrestaShop","owner":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars.githubusercontent.com/u/2815696?v=3","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PrestaShop/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open Source e-commerce solution.","fork":false,"url":"https://api.github.com/repos/PrestaShop/PrestaShop","forks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/forks","keys_url":"https://api.github.com/repos/PrestaShop/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrestaShop/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrestaShop/PrestaShop/teams","hooks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/events","assignees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/PrestaShop/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/tags","blobs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/PrestaShop/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscription","commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/PrestaShop/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrestaShop/PrestaShop/merges","archive_url":"https://api.github.com/repos/PrestaShop/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrestaShop/PrestaShop/downloads","issues_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/PrestaShop/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/PrestaShop/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/PrestaShop/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/deployments","created_at":"2012-11-19T16:41:31Z","updated_at":"2016-02-03T12:05:24Z","pushed_at":"2016-02-03T15:57:52Z","git_url":"git://github.com/PrestaShop/PrestaShop.git","ssh_url":"git@github.com:PrestaShop/PrestaShop.git","clone_url":"https://github.com/PrestaShop/PrestaShop.git","svn_url":"https://github.com/PrestaShop/PrestaShop","homepage":"http://www.prestashop.com/","size":255414,"stargazers_count":1609,"watchers_count":1609,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1769,"mirror_url":null,"open_issues_count":415,"forks":1769,"open_issues":415,"watchers":1609,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4868"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/4868"},"issue":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/4868"},"comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/4868/comments"},"review_comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4868/comments"},"review_comment":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4868/commits"},"statuses":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/3cacf8b612271a9fb119df7ed47eabc62d5fa6c2"}}}}