mirror of
https://github.com/znc/znc.git
synced 2026-05-08 22:34:45 +02:00
Fixed a bug introduced in r1740 where template files weren't being found
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1741 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-1
@@ -175,7 +175,7 @@ void CTemplate::ClearPaths() {
|
||||
|
||||
bool CTemplate::SetFile(const CString& sFileName) {
|
||||
m_sFileName = ExpandFile(sFileName, false);
|
||||
//PrependPath(sFileName + "/..");
|
||||
PrependPath(sFileName + "/..");
|
||||
|
||||
if (sFileName.empty()) {
|
||||
DEBUG("CTemplate::SetFile() - Filename is empty");
|
||||
|
||||
@@ -354,6 +354,7 @@ CWebAdminSock::CWebAdminSock(CWebAdminMod* pModule, const CString& sHostname, un
|
||||
m_pSessionUser = NULL;
|
||||
m_bAdmin = false;
|
||||
SetDocRoot(GetSkinDir());
|
||||
m_Template.AppendPath("./");
|
||||
}
|
||||
|
||||
CWebAdminSock::~CWebAdminSock() {
|
||||
|
||||
Reference in New Issue
Block a user