mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
fix issues
This commit is contained in:
@@ -156,8 +156,9 @@ function print_attachment($dlkey, $enableimage = true, $imageresizer = true)
|
||||
// else{
|
||||
// $url = $httpdirectory_attachment."/".$row['location'];
|
||||
// }
|
||||
$url = \Nexus\Attachment\Storage::getDriver($row['driver'])->getImageUrl($row['location']);
|
||||
do_log(sprintf("driver: %s, location: %s, url: %s", $row['driver'], $row['location'], $url));
|
||||
$driver = $row['driver'] ?? 'local';
|
||||
$url = \Nexus\Attachment\Storage::getDriver($driver)->getImageUrl($row['location']);
|
||||
do_log(sprintf("driver: %s, location: %s, url: %s", $driver, $row['location'], $url));
|
||||
if($imageresizer == true)
|
||||
$onclick = " onclick=\"Previewurl('".$url."')\"";
|
||||
else $onclick = "";
|
||||
|
||||
@@ -209,7 +209,7 @@ function do_log($log, $level = 'info', $echo = false)
|
||||
}
|
||||
}
|
||||
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2);
|
||||
$dt = DateTime::createFromFormat('U.u', microtime(true));
|
||||
$dt = DateTime::createFromFormat('U.u', sprintf('%.6f', microtime(true)));
|
||||
$dt->setTimezone(new DateTimeZone(nexus_env('TIMEZONE', 'UTC')));
|
||||
$content = sprintf(
|
||||
"[%s] [%s] [%s] [%s] [%s] [%s] %s.%s %s:%s %s%s%s %s%s",
|
||||
|
||||
Reference in New Issue
Block a user