Skip to content

Commit

Permalink
Fixed #2916
Browse files Browse the repository at this point in the history
  • Loading branch information
Geert De Deckere committed Jun 6, 2010
1 parent 6c89e72 commit ba9dc60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions classes/kohana/pagination.php
Expand Up @@ -178,6 +178,12 @@ public function url($page = 1)
// Clean the page number
$page = max(1, (int) $page);

// No page number in URLs to first page
if ($page === 1)
{
$page = NULL;
}

switch ($this->config['current_page']['source'])
{
case 'query_string':
Expand Down

0 comments on commit ba9dc60

Please sign in to comment.