mirror of
https://github.com/znc/znc.git
synced 2026-08-11 03:12:50 +02:00
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:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user