@@ 6012-6014 (lines=3) @@ | ||
6009 | if (is_array($val)) { |
|
6010 | foreach ($val as $key2 => $val2) { |
|
6011 | $val2 = $this->parseText($val2, $ph); |
|
6012 | if (preg_match($regexUrl, $val2, $url)) { |
|
6013 | $val2 = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val2); |
|
6014 | } |
|
6015 | if (preg_match($regexEmail, $val2, $url)) { |
|
6016 | $val2 = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val2); |
|
6017 | } |
|
@@ 6022-6024 (lines=3) @@ | ||
6019 | } |
|
6020 | } else { |
|
6021 | $val = $this->parseText($val, $ph); |
|
6022 | if (preg_match($regexUrl, $val, $url)) { |
|
6023 | $val = preg_replace($regexUrl, "<a href=\"{$url[0]}\" target=\"_blank\">{$url[0]}</a> ", $val); |
|
6024 | } |
|
6025 | if (preg_match($regexEmail, $val, $url)) { |
|
6026 | $val = preg_replace($regexEmail, '<a href="mailto:\\1' . $emailSubject . '">\\1</a>', $val); |
|
6027 | } |