Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

A little bit better solution #1

Merged
merged 1 commit into from

2 participants

Hannes Papenberg AlexanderMeier
Hannes Papenberg

This solves a few codestyle issues and uses a slightly better solution. Please merge this and then we can find some testers. :-)

AlexanderMeier AlexanderMeier merged commit 9b2d947 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 2, 2014
  1. Hannes Papenberg

    A little bit better solution

    Hackwar authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 3 deletions.
  1. +4 −3 libraries/cms/router/site.php
7 libraries/cms/router/site.php
View
@@ -590,11 +590,12 @@ protected function processBuildRules(&$uri)
if ($this->_mode == JROUTER_MODE_SEF && $route)
{
- if (!is_null($limitstart = $uri->getVar('limitstart')))
+ $limitstart = (int) $uri->getVar('limitstart');
+ if ($limistart > 0)
{
- if($limitstart>0) $uri->setVar('start', (int) $limitstart);
- $uri->delVar('limitstart');
+ $uri->setVar('start', $limitstart);
}
+ $uri->delVar('limitstart');
}
$uri->setPath($route);
Something went wrong with that request. Please try again.