mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix bbcode_attach_to_img driver local
This commit is contained in:
@@ -6573,6 +6573,7 @@ function bbcode_attach_to_img(string $text) {
|
|||||||
} else {
|
} else {
|
||||||
$url = $httpdirectory_attachment."/".$row['location'];
|
$url = $httpdirectory_attachment."/".$row['location'];
|
||||||
}
|
}
|
||||||
|
$url = sprintf("%s/%s", getSchemeAndHttpHost(true), trim($url, "/"));
|
||||||
} else {
|
} else {
|
||||||
$url = \Nexus\Attachment\Storage::getDriver($driver)->getImageUrl($row['location']);
|
$url = \Nexus\Attachment\Storage::getDriver($driver)->getImageUrl($row['location']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user