code/libraries/joomlatools/library/view/json.php
protected function _processLinks(array &$array)
    {
        $base = $this->getUrl()->toString(KHttpUrl::AUTHORITY);

        foreach ($array as $key => &$value)
        {
            if (is_array($value)) {
                $this->_processLinks($value);
            }
            elseif ($key === 'href')
            {
                if (substr($value, 0, 4) !== 'http') {
                    $array[$key] = $base.$value;
                }
            }
            elseif (in_array($key, $this->_text_fields)) {
                $array[$key] = $this->_processText($value);
            }
        }
    }
protected function _processLinks(array &$array)
    {
        $base = $this->getUrl()->toString(KHttpUrl::AUTHORITY);

        foreach ($array as $key => &$value)
        {
            if (is_array($value)) {
                $this->_processLinks($value);
            }
            elseif ($key === 'href')
            {
                if (substr($value, 0, 4) !== 'http') {
                    $array[$key] = $base.$value;
                }
            }
            elseif (in_array($key, $this->_text_fields)) {
                $array[$key] = $this->_processText($value);
            }
        }
    }
protected function _processLinks ( array & $ array ) { $ base = $ this -> getUrl ( ) -> toString ( KHttpUrl :: AUTHORITY ) ; foreach ( $ array as $ key => & $ value ) { if ( is_array ( $ value ) ) { $ this -> _processLinks ( $ value ) ; } elseif ( $ key === 'href' ) { if ( substr ( $ value , 0 , 4 ) !== 'http' ) { $ array [ $ key ] = $ base . $ value ; } } elseif ( in_array ( $ key , $ this -> _text_fields ) ) { $ array [ $ key ] = $ this -> _processText ( $ value ) ; } } }
Converts links in an array from relative to absolute

@param array $array Source array
Converts links in an array from relative to absolute