fix custom field rendering

This commit is contained in:
xiaomlove
2022-08-22 01:17:04 +08:00
parent 352d88f1f5
commit 1f76ebb4f9
2 changed files with 12 additions and 16 deletions

View File

@@ -216,10 +216,6 @@ function formatAdUrl($adid, $url, $content, $newWindow=true)
return formatUrl("adredir.php?id=".$adid."&url=".rawurlencode($url), $newWindow, $content);
}
function formatUrl($url, $newWindow = false, $text = '', $linkClass = '') {
//Exclude youtube, because [youtube] bbcode
if (str_contains($url, 'youtube')) {
return $url;
}
if (!$text) {
$text = $url;
}