X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Fhttp%2Fpages%2Fhomepage.h;fp=include%2Fhttp%2Fpages%2Fhomepage.h;h=cfdbb4b4d53b7a19cf3b334f60c47c45d51a56df;hp=0b8c5e2bd4760ce368a9945bbc4a202bfbd2d55f;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hpb=4e96d123460d6363cf7274e36bd9357768eb86ad diff --git a/include/http/pages/homepage.h b/include/http/pages/homepage.h index 0b8c5e2..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,"index.htm") {} + 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);