Updated DumpInfo plugin
This commit is contained in:
parent
ac0a360915
commit
93afb6398d
@ -3,7 +3,7 @@ function Initialize(a_Plugin)
|
|||||||
a_Plugin:SetVersion(1)
|
a_Plugin:SetVersion(1)
|
||||||
|
|
||||||
-- Check if the infodump file exists.
|
-- Check if the infodump file exists.
|
||||||
if (not cFile:Exists("Plugins/InfoDump.lua")) then
|
if (not cFile:IsFile("Plugins/InfoDump.lua")) then
|
||||||
LOGWARN("[DumpInfo] InfoDump.lua was not found.")
|
LOGWARN("[DumpInfo] InfoDump.lua was not found.")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
@ -36,7 +36,7 @@ function HandleDumpPluginRequest(a_Request)
|
|||||||
cPluginManager:Get():ForEachPlugin(
|
cPluginManager:Get():ForEachPlugin(
|
||||||
function(a_Plugin)
|
function(a_Plugin)
|
||||||
-- Check if there is a file called 'Info.lua'
|
-- Check if there is a file called 'Info.lua'
|
||||||
if (cFile:Exists("Plugins/" .. a_Plugin:GetName() .. "/Info.lua")) then
|
if (cFile:IsFile("Plugins/" .. a_Plugin:GetName() .. "/Info.lua")) then
|
||||||
Content = Content .. "\n<tr>\n"
|
Content = Content .. "\n<tr>\n"
|
||||||
Content = Content .. "\t<td>" .. a_Plugin:GetName() .. "</td>\n"
|
Content = Content .. "\t<td>" .. a_Plugin:GetName() .. "</td>\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 .. "\t<td><form method='POST'> <input type='hidden' value='" .. a_Plugin:GetName() .. "' name='DumpInfo'> <input type='submit' value='DumpInfo'></form></td>\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user