diff options
author | dvs1 | 2025-01-17 15:40:58 +1000 |
---|---|---|
committer | dvs1 | 2025-01-17 15:40:58 +1000 |
commit | ba4baa56128cb603c20ce12c1a1c3faa34992176 (patch) | |
tree | 862e6a7da5f0812b8ad9f1e6669343c1a2dc215d | |
parent | Don't print two lines per file, silence is golden. (diff) | |
download | notYetAnotherWiki-ba4baa56128cb603c20ce12c1a1c3faa34992176.zip notYetAnotherWiki-ba4baa56128cb603c20ce12c1a1c3faa34992176.tar.gz notYetAnotherWiki-ba4baa56128cb603c20ce12c1a1c3faa34992176.tar.bz2 notYetAnotherWiki-ba4baa56128cb603c20ce12c1a1c3faa34992176.tar.xz |
Clean up left overs.
-rwxr-xr-x | notYetAnotherWiki.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index bf9791f..1f87549 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua | |||
@@ -207,15 +207,12 @@ for name, file in pairs(Files) do | |||
207 | local pith = '' | 207 | local pith = '' |
208 | if nil ~= metadata[y] then | 208 | if nil ~= metadata[y] then |
209 | local pth, found = '', false | 209 | local pth, found = '', false |
210 | |||
211 | if (nil ~= Subs[''].metadata) and (nil ~= Subs[''].metadata[y]) then pith = '' ; found = true end | 210 | if (nil ~= Subs[''].metadata) and (nil ~= Subs[''].metadata[y]) then pith = '' ; found = true end |
212 | |||
213 | for m, x in ipairs(bits) do | 211 | for m, x in ipairs(bits) do |
214 | if '' ~= pth then pth = pth .. '/' end | 212 | if '' ~= pth then pth = pth .. '/' end |
215 | pth = pth .. x | 213 | pth = pth .. x |
216 | if (nil ~= Subs[pth].metadata) and (nil ~= Subs[pth].metadata[y]) then pith = pth ; found = true end | 214 | if (nil ~= Subs[pth].metadata) and (nil ~= Subs[pth].metadata[y]) then pith = pth ; found = true end |
217 | end | 215 | end |
218 | -- if ('' == pith) and (nil ~= Subs[''].metadata) and (nil ~= Subs[''].metadata[y]) then pith = pth end | ||
219 | if found then metadata[y] = linkFrom(path, pith) .. metadata[y] | 216 | if found then metadata[y] = linkFrom(path, pith) .. metadata[y] |
220 | else metadata[y] = linkFrom(path, pith) .. globalData[y] | 217 | else metadata[y] = linkFrom(path, pith) .. globalData[y] |
221 | end | 218 | end |