This commit is contained in:
Liang Ding 2023-04-06 22:41:02 +08:00
parent d81c56f026
commit e107130a48
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -45,16 +45,13 @@ func getChangelog(c *gin.Context) {
return
}
//if !model.Conf.ShowChangelog {
// return
//}
if !model.Conf.ShowChangelog {
return
}
ver := util.Ver
ver = "2.8.4"
changelogPath := filepath.Join(changelogsDir, "v"+ver+"_"+model.Conf.Lang+".md")
changelogPath := filepath.Join(changelogsDir, "v"+util.Ver+"_"+model.Conf.Lang+".md")
if !gulu.File.IsExist(changelogPath) {
changelogPath = filepath.Join(changelogsDir, "v"+ver+".md")
changelogPath = filepath.Join(changelogsDir, "v"+util.Ver+".md")
if !gulu.File.IsExist(changelogPath) {
logging.LogErrorf("changelog not found: %s", changelogPath)
return