This commit is contained in:
Daniel 2024-09-28 17:04:00 +08:00
parent 2e39cb75c5
commit fb2b9c5319
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017
2 changed files with 3 additions and 3 deletions

View File

@ -1770,7 +1770,7 @@ func RenameDoc(boxID, p, title string) (err error) {
return return
} }
if "" == title { if "" == title {
title = Conf.language(105) title = Conf.language(16)
} }
title = strings.ReplaceAll(title, "/", "") title = strings.ReplaceAll(title, "/", "")
@ -1808,7 +1808,7 @@ func createDoc(boxID, p, title, dom string) (tree *parse.Tree, err error) {
title = strings.ReplaceAll(title, "/", "") title = strings.ReplaceAll(title, "/", "")
title = strings.TrimSpace(title) title = strings.TrimSpace(title)
if "" == title { if "" == title {
title = Conf.Language(105) title = Conf.Language(16)
} }
baseName := strings.TrimSpace(path.Base(p)) baseName := strings.TrimSpace(path.Base(p))

View File

@ -812,7 +812,7 @@ func indexHistoryDir(name string, luteEngine *lute.Lute) {
title := tree.Root.IALAttr("title") title := tree.Root.IALAttr("title")
if "" == title { if "" == title {
title = Conf.language(105) title = Conf.language(16)
} }
content := tree.Root.Content() content := tree.Root.Content()
p := strings.TrimPrefix(doc, util.HistoryDir) p := strings.TrimPrefix(doc, util.HistoryDir)