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/" baseContent := "/content/"
if base == "/readnew/" { if base == "/readnew/" {
base = "/contentnew/" baseContent = "/contentnew/"
} }
data.Content = genLink(id, baseContent, file) data.Content = genLink(id, baseContent, file)
loadTemplate(w, "read", data) loadTemplate(w, "read", data)