X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fhttp%2Fpages%2Fhomepage.h;h=cfdbb4b4d53b7a19cf3b334f60c47c45d51a56df;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hp=d8eaa0c3f68b2a1c034c0c811ad9990ecb1649a8;hpb=f208e33c29132aacaec448e74341edea1b925a2a;p=fms.git diff --git a/include/http/pages/homepage.h b/include/http/pages/homepage.h index d8eaa0c..cfdbb4b 100644 --- a/include/http/pages/homepage.h +++ b/include/http/pages/homepage.h @@ -6,7 +6,9 @@ class HomePage:public IPageHandler { public: - HomePage(const std::string &templatestr):IPageHandler(templatestr) {} + HomePage(SQLite3DB::DB *db, const std::string &templatestr):IPageHandler(db,templatestr,"index.htm") {} + + IPageHandler *New() { return new HomePage(m_db,m_template); } private: const bool WillHandleURI(const std::string &uri);