diff options
Diffstat (limited to '')
| -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 |
