mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user