Move module templates to DATADIR
The file hierarchy standard wants that! git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1982 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
1 parent
0c0c51172e
commit
fbe5dd10e7
4 files changed
+14
-6
No files matched your search
@@ -454,6 +454,12 @@ CString CWebSock::GetModWebPath(const CModule* pModule) const {
|
||||
// ...and set sModDir to the dir in which sModPath resides
|
||||
CString sModDir = sModPath.substr(0, pos);
|
||||
|
||||
// Check if module is loaded from ~/.znc/modules or from source or from installed prefix
|
||||
if (sModDir.Equals(_MODDIR_)) {
|
||||
// Loaded from installed prefix
|
||||
return CString(_DATADIR_) + "/www/" + pModule->GetModName();
|
||||
}
|
||||
|
||||
return sModDir + "/www/" + pModule->GetModName();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user