+ Add onlybody to popup links on old pages.

This commit is contained in:
tianshujie
2024-03-07 09:07:12 +08:00
parent d1817fac03
commit eb5e2dde89
+1 -1
View File
@@ -170,7 +170,7 @@ class baseHelper
$sign = !str_contains($link, '?') ? "?" : "&";
$appendString = '';
if($onlyBody) $appendString = $sign . "onlybody=yes";
if($onlyBody or (self::inOnlyBodyMode() && !self::isAjaxRequest('modal'))) $appendString = $sign . "onlybody=yes";
if(self::isWithTID() and !str_contains($link, 'tid=')) $appendString .= empty($appendString) ? "{$sign}tid={$_GET['tid']}" : "&tid={$_GET['tid']}";
return $link . $appendString;
}