Merge branch 'ticket650' into develop
This commit is contained in:
commit
183e5a98af
1 changed files with 5 additions and 1 deletions
|
|
@ -26,7 +26,11 @@ class Utils
|
|||
} else {
|
||||
$url = $match;
|
||||
if (\strpos($url, 'http') === false and \strpos($url, 'https') === false) {
|
||||
$url = sprintf('http://%s', $url);
|
||||
$url = sprintf(
|
||||
'%s://%s',
|
||||
config('app.env') !== 'local' ? 'https' : 'http',
|
||||
$url
|
||||
);
|
||||
}
|
||||
$fsligthbox = self::isImageFile($url) ? 'data-fslightbox="gallery"' : '';
|
||||
return strlen($match) ? "<a $fsligthbox href=\"$url\" target=\"_blank\">$match</a>" : $match;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue