catch one more case of title normalisation
This commit is contained in:
parent
1bfefdccb3
commit
f934c2917f
2
DB.go
2
DB.go
@ -92,7 +92,7 @@ func (this *WikiDB) GetRevision(revId int) (*Article, error) {
|
||||
}
|
||||
|
||||
func (this *WikiDB) GetLatestVersion(title string) (*Article, error) {
|
||||
row := this.db.QueryRow(`SELECT articles.* FROM articles WHERE article = (SELECT id FROM titles WHERE title = ?) ORDER BY modified DESC LIMIT 1`, title)
|
||||
row := this.db.QueryRow(`SELECT articles.* FROM articles WHERE article = (SELECT id FROM titles WHERE title = ?) ORDER BY modified DESC LIMIT 1`, this.normaliseTitle(title))
|
||||
return this.parseArticle(row)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user