diff options
author | NiLSPACE <NiLSPACE@users.noreply.github.com> | 2024-05-27 10:42:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-27 10:42:07 +0200 |
commit | 64e97c8d1628759c102104d79a4433e4337f39dd (patch) | |
tree | eb1354c51b83d725b942d79f3c136860106cde55 /Server/Plugins/DumpInfo/Init.lua | |
parent | Fix filename template for saved maps (#5556) (diff) | |
download | cuberite-64e97c8d1628759c102104d79a4433e4337f39dd.tar cuberite-64e97c8d1628759c102104d79a4433e4337f39dd.tar.gz cuberite-64e97c8d1628759c102104d79a4433e4337f39dd.tar.bz2 cuberite-64e97c8d1628759c102104d79a4433e4337f39dd.tar.lz cuberite-64e97c8d1628759c102104d79a4433e4337f39dd.tar.xz cuberite-64e97c8d1628759c102104d79a4433e4337f39dd.tar.zst cuberite-64e97c8d1628759c102104d79a4433e4337f39dd.zip |
Diffstat (limited to 'Server/Plugins/DumpInfo/Init.lua')
-rw-r--r-- | Server/Plugins/DumpInfo/Init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Server/Plugins/DumpInfo/Init.lua b/Server/Plugins/DumpInfo/Init.lua index 723ab3d94..6f51aa4a6 100644 --- a/Server/Plugins/DumpInfo/Init.lua +++ b/Server/Plugins/DumpInfo/Init.lua @@ -23,7 +23,7 @@ function HandleDumpPluginRequest(a_Request) -- Check if it already was requested to dump a plugin. if (a_Request.PostParams["DumpInfo"] ~= nil) then local F = loadfile("Plugins/InfoDump.lua") - F("Plugins/" .. a_Request.PostParams["DumpInfo"]) + F("Plugins/" .. cPluginManager:Get():GetPluginFolderName(a_Request.PostParams["DumpInfo"])) end Content = Content .. [[ @@ -36,7 +36,7 @@ function HandleDumpPluginRequest(a_Request) cPluginManager:Get():ForEachPlugin( function(a_Plugin) -- Check if there is a file called 'Info.lua' - if (cFile:IsFile("Plugins/" .. a_Plugin:GetName() .. "/Info.lua")) then + if (cFile:IsFile(a_Plugin:GetLocalFolder() .. "/Info.lua")) then Content = Content .. "\n<tr>\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" |