@@ 654-667 (lines=14) @@ | ||
651 | * @param string $url |
|
652 | * @return mixed|string |
|
653 | */ |
|
654 | public static function sf_getxoopslink($url = '') |
|
655 | { |
|
656 | $xurl = $url; |
|
657 | if (strlen($xurl) > 0) { |
|
658 | if ($xurl[0] = '/') { |
|
659 | $xurl = str_replace('/', '', $xurl); |
|
660 | } |
|
661 | $xurl = str_replace('{SITE_URL}', XOOPS_URL, $xurl); |
|
662 | } |
|
663 | ||
664 | // $xurl = $url; |
|
665 | ||
666 | return $xurl; |
|
667 | } |
|
668 | ||
669 | /** |
|
670 | * @param string $tablename |
@@ 514-527 (lines=14) @@ | ||
511 | * @param string $url |
|
512 | * @return mixed|string |
|
513 | */ |
|
514 | function sf_getxoopslink($url = '') |
|
515 | { |
|
516 | $xurl = $url; |
|
517 | if (strlen($xurl) > 0) { |
|
518 | if ($xurl[0] = '/') { |
|
519 | $xurl = str_replace('/', '', $xurl); |
|
520 | } |
|
521 | $xurl = str_replace('{SITE_URL}', XOOPS_URL, $xurl); |
|
522 | } |
|
523 | ||
524 | // $xurl = $url; |
|
525 | ||
526 | return $xurl; |
|
527 | } |
|
528 | ||
529 | /** |
|
530 | * @param string $tablename |