@@ 372-376 (lines=5) @@ | ||
369 | } |
|
370 | ||
371 | $url = Context::getUrl($num_args, $args_list); |
|
372 | if(strncasecmp('http', $url, 4) !== 0) |
|
373 | { |
|
374 | preg_match('/^(http|https):\/\/([^\/]+)\//', $request_uri, $match); |
|
375 | return substr($match[0], 0, -1) . $url; |
|
376 | } |
|
377 | return $url; |
|
378 | } |
|
379 | ||
@@ 469-473 (lines=5) @@ | ||
466 | $num_args = count($args_list); |
|
467 | ||
468 | $url = Context::getUrl($num_args, $args_list, $domain); |
|
469 | if(strncasecmp('http', $url, 4) !== 0) |
|
470 | { |
|
471 | preg_match('/^(http|https):\/\/([^\/]+)\//', $request_uri, $match); |
|
472 | return substr($match[0], 0, -1) . $url; |
|
473 | } |
|
474 | return $url; |
|
475 | } |
|
476 |