WebMods: Calculate the module's web path correctly

Until now, the code checked for <moddir>/www/<mod name> and just used
./modules/www/<mod name> if the other dir didn't exist.

Now we calculate the correct path from the module's shared object's path, which
is the correct thing to do.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1967 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-05-03 13:49:45 +00:00
parent 99f1efc843
commit 3b6205979e
2 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ public:
CString GetCSRFCheck();
virtual Csock* GetSockObj(const CString& sHost, unsigned short uPort);
CString GetModWebPath(const CString& sModName) const;
CString GetModWebPath(const CModule* pModule) const;
CString GetSkinPath(const CString& sSkinName) const;
CModule* GetModule() const { return (CModule*) m_pModule; }
size_t GetAvailSkins(vector<CFile>& vRet);