mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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