@@ 301-304 (lines=4) @@ | ||
298 | if ( ! empty($this->config['uriSegment'])) |
|
299 | { |
|
300 | $segments = explode('/', trim($this->input->getPathInfo(),'/')); |
|
301 | if (isset($segments[$this->config['uriSegment']]) and is_numeric($segments[$this->config['uriSegment']])) |
|
302 | { |
|
303 | $this->config['current'] = $segments[$this->config['uriSegment']]; |
|
304 | } |
|
305 | } |
|
306 | ||
307 | // do we have a getVariable set? |
|
@@ 310-313 (lines=4) @@ | ||
307 | // do we have a getVariable set? |
|
308 | if ( ! empty($this->config['getVariable']) and $get = $this->input->getQuery()) |
|
309 | { |
|
310 | if (isset($get[$this->config['getVariable']]) and is_numeric($get[$this->config['getVariable']])) |
|
311 | { |
|
312 | $this->config['current'] = $get[$this->config['uriSegment']]; |
|
313 | } |
|
314 | } |
|
315 | ||
316 | // if none could be determine, try to calculate it |