Fix reader for new books

This commit is contained in:
Las Zenow 2012-09-02 23:32:17 +02:00
parent de0fd4227c
commit 3337ffaf82

View file

@ -152,7 +152,7 @@ func readHandler(coll *mgo.Collection) func(http.ResponseWriter, *http.Request)
}
baseContent := "/content/"
if base == "/readnew/" {
base = "/contentnew/"
baseContent = "/contentnew/"
}
data.Content = genLink(id, baseContent, file)
loadTemplate(w, "read", data)