attach timestamp to image url

This commit is contained in:
joyqi
2024-01-24 17:54:56 +08:00
parent d1e961af90
commit bd6a6a0e0e
+1 -1
View File
@@ -12,7 +12,7 @@ include 'menu.php';
<div class="row typecho-page-main">
<div class="col-mb-12 col-tb-8" role="main">
<?php if ($attachment->attachment->isImage): ?>
<p><img src="<?php $attachment->attachment->url(); ?>"
<p><img src="<?php $attachment->attachment->url(); ?>?<?php $attachment->modified(); ?>"
alt="<?php $attachment->attachment->name(); ?>" class="typecho-attachment-photo"/></p>
<?php endif; ?>