Merge branch 'modinfo'

This commit is contained in:
Alexey Sokolov
2011-06-11 18:32:09 +07:00
45 changed files with 262 additions and 112 deletions

View File

@@ -745,6 +745,7 @@ public:
l["Name"] = Info.GetName();
l["Description"] = Info.GetDescription();
l["Args"] = GetModArgs(pUser, Info.GetName());
l["Wiki"] = Info.GetWikiPage();
if (pUser && pUser->GetModules().FindModule(Info.GetName())) {
l["Checked"] = "true";
@@ -1039,6 +1040,7 @@ public:
l["Name"] = Info.GetName();
l["Description"] = Info.GetDescription();
l["Args"] = GetModArgs(NULL, Info.GetName(), true);
l["Wiki"] = Info.GetWikiPage();
}
return true;
@@ -1124,4 +1126,8 @@ public:
}
};
template<> void TModInfo<CWebAdminMod>(CModInfo& Info) {
Info.SetWikiPage("webadmin");
}
GLOBALMODULEDEFS(CWebAdminMod, "Web based administration module")