mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
youtube url do not auto transfer
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.23');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-08-21');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-08-22');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
@@ -216,6 +216,10 @@ 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;
|
||||
}
|
||||
|
||||
@@ -420,7 +420,7 @@ JS;
|
||||
}
|
||||
$result = $rowByRowHtml;
|
||||
if (!empty($mixedRowContent)) {
|
||||
$result .= tr($displayName, $mixedRowContent, 1);
|
||||
$result .= tr($displayName, format_comment($mixedRowContent), 1);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user