DZ下载附件自动带缀名
给附件增加下载自动带前缀或后缀名找到文件./source/module/forum/forum_attachment.php搜索:
$thread && $attachexists = TRUE;在下面添加代码:
$attach['filename'] = $_G['setting']['bbname'].'-'.$attach['filename'];然后在:
$attachexists = TRUE;在下面添加代码:
$attach['filename'] = $_G['setting']['bbname'].'-'.$attach['filename'];保存文件,下载附件自动会带增加的前缀或后缀名。
页:
[1]