version 0.3.29
[fms.git] / src / http / pages / peerdetailspage.cpp
index 4148c57..a569bd9 100644 (file)
@@ -26,9 +26,11 @@ const std::string PeerDetailsPage::GeneratePage(const std::string &method, const
        std::string publishtrustlist="";\r
        std::string messagebase="";\r
 \r
+       Option option(m_db);\r
        std::string fproxyport="8888";\r
-       Option::Instance()->Get("FProxyPort",fproxyport);\r
-       Option::Instance()->Get("MessageBase",messagebase);\r
+       option.Get("FProxyPort",fproxyport);\r
+       option.Get("MessageBase",messagebase);\r
+       option.Get("FCPHost",fcphost);\r
 \r
        if(queryvars.find("identityid")!=queryvars.end() && (*queryvars.find("identityid")).second!="")\r
        {\r
@@ -57,8 +59,6 @@ const std::string PeerDetailsPage::GeneratePage(const std::string &method, const
                del.Step();\r
        }\r
 \r
-       Option::Instance()->Get("FCPHost",fcphost);\r
-\r
        SQLite3DB::Statement st=m_db->Prepare("SELECT Name,PublicKey,DateAdded,LastSeen,AddedMethod,Hidden,FreesiteEdition,PublishTrustList FROM tblIdentity WHERE IdentityID=?;");\r
        st.Bind(0,identityid);\r
        st.Step();\r