X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fhttp%2Fpages%2Fhomepage.h;h=cfdbb4b4d53b7a19cf3b334f60c47c45d51a56df;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hp=1a4b8325e40983a15ba0984fd412de14eb5c8629;hpb=dec33c63afafabf83c3039e916725cac6faef9b3;p=fms.git diff --git a/include/http/pages/homepage.h b/include/http/pages/homepage.h index 1a4b832..cfdbb4b 100644 --- a/include/http/pages/homepage.h +++ b/include/http/pages/homepage.h @@ -2,14 +2,13 @@ #define _homepage_ #include "../ipagehandler.h" -#include "../../idatabase.h" -class HomePage:public IPageHandler,public IDatabase +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_template); } + IPageHandler *New() { return new HomePage(m_db,m_template); } private: const bool WillHandleURI(const std::string &uri);