diff --git a/.gitignore b/.gitignore index e52c598..d4d53eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .vscode/ftp-kr.sync.cache.json +.serena/ diff --git a/.vscode/ftp-kr.json b/.vscode/ftp-kr.json index 59b6a3c..9942ae6 100644 --- a/.vscode/ftp-kr.json +++ b/.vscode/ftp-kr.json @@ -12,6 +12,9 @@ "ignoreRemoteModification": true, "ignore": [ ".git", - "/.vscode" + "/.vscode", + "/.serena", + "/.claude", + "CLAUDE.md" ] } \ No newline at end of file diff --git a/templates_user/globelus/adverts/advert-details.php b/templates_user/globelus/adverts/advert-details.php index 24d1a15..9876783 100644 --- a/templates_user/globelus/adverts/advert-details.php +++ b/templates_user/globelus/adverts/advert-details.php @@ -1,4 +1,11 @@ - global $lang; ?> + global $lang; +$fixUrl = function($url) { + if ($url !== '' && !preg_match('#^https?://#i', $url)) { + return 'https://' . $url; + } + return $url; +}; +?>