version 0.3.29
[fms.git] / src / http / pages / insertedfilespage.cpp
index e97bf63..dbd27b0 100644 (file)
@@ -10,11 +10,11 @@ const std::string InsertedFilesPage::GeneratePage(const std::string &method, con
 {\r
        std::string content="<h2>Inserted Files</h2>";\r
 \r
+       Option option(m_db);\r
        std::string node="localhost";\r
-       Option::Instance()->Get("FCPHost",node);\r
+       option.Get("FCPHost",node);\r
        std::string fproxyport="8888";\r
-       Option::Instance()->Get("FProxyPort",fproxyport);\r
-\r
+       option.Get("FProxyPort",fproxyport);\r
 \r
        if(queryvars.find("formaction")!=queryvars.end() && (*queryvars.find("formaction")).second=="removefile" && queryvars.find("fileid")!=queryvars.end() && ValidateFormPassword(queryvars))\r
        {\r