Updated DumpInfo plugin.
cPluginManager:GetAllPlugins is deprecated
This commit is contained in:
parent
b135ab8b95
commit
e7214dff65
@ -33,15 +33,17 @@ function HandleDumpPluginRequest(a_Request)
|
|||||||
</tr>]]
|
</tr>]]
|
||||||
|
|
||||||
-- Loop through each plugin that is found.
|
-- Loop through each plugin that is found.
|
||||||
for PluginName, k in pairs(cPluginManager:Get():GetAllPlugins()) do
|
cPluginManager:Get():ForEachPlugin(
|
||||||
-- Check if there is a file called 'Info.lua' or 'info.lua'
|
function(a_Plugin)
|
||||||
if (cFile:Exists("Plugins/" .. PluginName .. "/Info.lua")) then
|
-- Check if there is a file called 'Info.lua'
|
||||||
Content = Content .. "\n<tr>\n"
|
if (cFile:Exists("Plugins/" .. a_Plugin:GetName() .. "/Info.lua")) then
|
||||||
Content = Content .. "\t<td>" .. PluginName .. "</td>\n"
|
Content = Content .. "\n<tr>\n"
|
||||||
Content = Content .. "\t<td><form method='POST'> <input type='hidden' value='" .. PluginName .. "' name='DumpInfo'> <input type='submit' value='DumpInfo'></form></td>\n"
|
Content = Content .. "\t<td>" .. a_Plugin:GetName() .. "</td>\n"
|
||||||
Content = Content .. "</tr>\n"
|
Content = Content .. "\t<td><form method='POST'> <input type='hidden' value='" .. a_Plugin:GetName() .. "' name='DumpInfo'> <input type='submit' value='DumpInfo'></form></td>\n"
|
||||||
|
Content = Content .. "</tr>\n"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
)
|
||||||
|
|
||||||
Content = Content .. [[
|
Content = Content .. [[
|
||||||
</table>]]
|
</table>]]
|
||||||
|
Loading…
Reference in New Issue
Block a user