Fix webadmin favicons

r1481 moved the /img/ subdir into /data/, but forgot to fix the path which
is used for the favicon, which meant we generated a 404 for the favicon.
Fix this by using the correct path and everyone is happy again.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1524 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-05-27 10:59:36 +00:00
parent 85dce87d6a
commit aa4425bda5

View File

@@ -392,6 +392,9 @@ bool CWebAdminSock::OnPageRequest(const CString& sURI, CString& sPageRet) {
SetDocRoot(GetSkinDir() + "/data");
PrintFile(sTmp);
return false;
} else if (sURI == "/favicon.ico") {
PrintFile("/data/favicon.ico", "image/x-icon");
return false;
} else if (sURI == "/home") {
m_Template["Title"] = "Main Page";
m_Template["Action"] = "home";
@@ -485,9 +488,6 @@ bool CWebAdminSock::OnPageRequest(const CString& sURI, CString& sPageRet) {
} else {
GetErrorPage(sPageRet, "No such username");
}
} else if (sURI == "/favicon.ico") {
PrintFile("/img/favicon.ico", "image/x-icon");
return false;
} else if (sURI == "/listusers") {
if (!IsAdmin()) {
return false;