From aa4425bda54eabb7c1b1191d31b98d7125cc2b54 Mon Sep 17 00:00:00 2001 From: psychon Date: Wed, 27 May 2009 10:59:36 +0000 Subject: [PATCH] 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 --- modules/webadmin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/webadmin.cpp b/modules/webadmin.cpp index eadc6567..81c2e8b8 100644 --- a/modules/webadmin.cpp +++ b/modules/webadmin.cpp @@ -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;