X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fhttp%2Fpages%2Fhomepage.cpp;h=fc60f788d6dd54bee4060099019d2369e70f8935;hb=07319f767b4c4f0e06e9957f217d5107b196617b;hp=b295f451653fff51139f91f89f21293f0d71de46;hpb=76805933f794915a72b7f0a21b12af6654759f4f;p=fms.git
diff --git a/src/http/pages/homepage.cpp b/src/http/pages/homepage.cpp
index b295f45..fc60f78 100644
--- a/src/http/pages/homepage.cpp
+++ b/src/http/pages/homepage.cpp
@@ -32,7 +32,7 @@ const std::string HomePage::GeneratePage(const std::string &method, const std::m
content+="
";
bool showgenericupdate=true;
- SQLite3DB::Statement st=m_db->Prepare("SELECT Major, Minor, Release, PageKey FROM tblFMSVersion ORDER BY Major DESC, Minor DESC, Release DESC;");
+ SQLite3DB::Statement st=m_db->Prepare("SELECT Major, Minor, Release, PageKey FROM tblFMSVersion ORDER BY Major DESC, Minor DESC, Release DESC LIMIT 1;");
st.Step();
if(st.RowReturned())
{
@@ -51,6 +51,7 @@ const std::string HomePage::GeneratePage(const std::string &method, const std::m
if(currentmajorYou are running an old version of FMS. Please update here: FMS "+major+"."+minor+"."+release+"
";
+ content+="You can see the release info here
";
showgenericupdate=false;
}
@@ -58,7 +59,7 @@ const std::string HomePage::GeneratePage(const std::string &method, const std::m
if(showgenericupdate)
{
- content+="Check for new versions at the FMS Freesite
";
+ content+="Check for new versions at the FMS Freesite
";
}
content+="Use these pages to administer your FMS installation.";