@@ 389-402 (lines=14) @@ | ||
386 | if($this->get_vars) |
|
387 | { |
|
388 | $url = array(); |
|
389 | foreach($this->get_vars as $key => $val) |
|
390 | { |
|
391 | if(is_array($val) && count($val) > 0) |
|
392 | { |
|
393 | foreach($val as $k => $v) |
|
394 | { |
|
395 | $url[] = $key . '[' . $k . ']=' . urlencode($v); |
|
396 | } |
|
397 | } |
|
398 | elseif($val) |
|
399 | { |
|
400 | $url[] = $key . '=' . urlencode($val); |
|
401 | } |
|
402 | } |
|
403 | ||
404 | $current_url = self::getRequestUri(); |
|
405 | if($url) $current_url .= '?' . join('&', $url); |
|
@@ 1745-1758 (lines=14) @@ | ||
1742 | if(!$query) |
|
1743 | { |
|
1744 | $queries = array(); |
|
1745 | foreach($get_vars as $key => $val) |
|
1746 | { |
|
1747 | if(is_array($val) && count($val) > 0) |
|
1748 | { |
|
1749 | foreach($val as $k => $v) |
|
1750 | { |
|
1751 | $queries[] = $key . '[' . $k . ']=' . urlencode($v); |
|
1752 | } |
|
1753 | } |
|
1754 | elseif(!is_array($val)) |
|
1755 | { |
|
1756 | $queries[] = $key . '=' . urlencode($val); |
|
1757 | } |
|
1758 | } |
|
1759 | if(count($queries) > 0) |
|
1760 | { |
|
1761 | $query = 'index.php?' . join('&', $queries); |