mirror of
https://github.com/znc/znc.git
synced 2026-05-07 05:44:41 +02:00
Add methods to CModule to get the web path
Add these values to the template and use them when linking to any module
This commit is contained in:
@@ -249,7 +249,7 @@ public:
|
||||
return true;
|
||||
} else if (sPageName == "add") {
|
||||
AddKey(pUser, WebSock.GetParam("key"));
|
||||
WebSock.Redirect("/mods/certauth/");
|
||||
WebSock.Redirect(GetWebPath());
|
||||
return true;
|
||||
} else if (sPageName == "delete") {
|
||||
MSCString::iterator it = m_PubKeys.find(pUser->GetUserName());
|
||||
@@ -263,7 +263,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
WebSock.Redirect("/mods/certauth/");
|
||||
WebSock.Redirect(GetWebPath());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user