aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2026-01-28 17:21:58 +1000
committeronefang2026-01-28 17:21:58 +1000
commitbfbc9ba70d69bc8e0c091c934fd0a288da094bec (patch)
tree72800fd89b2a457f58aa14715c17ae35ccb17241
parentOOps. (diff)
downloadnotYetAnotherWiki-bfbc9ba70d69bc8e0c091c934fd0a288da094bec.zip
notYetAnotherWiki-bfbc9ba70d69bc8e0c091c934fd0a288da094bec.tar.gz
notYetAnotherWiki-bfbc9ba70d69bc8e0c091c934fd0a288da094bec.tar.bz2
notYetAnotherWiki-bfbc9ba70d69bc8e0c091c934fd0a288da094bec.tar.xz
OOps 2
-rwxr-xr-xnotYetAnotherWiki.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua
index d0fb8a0..0a1e8b3 100755
--- a/notYetAnotherWiki.lua
+++ b/notYetAnotherWiki.lua
@@ -821,19 +821,17 @@ local lunaLinky = function(url, lab, tit) -- Fix up the links.
821 end 821 end
822 end 822 end
823 if not done then 823 if not done then
824--[[
824 -- TODO - Should check if this came from DocuWiki in the first place, AND double check this is for img src. 825 -- TODO - Should check if this came from DocuWiki in the first place, AND double check this is for img src.
825 elseif '/' == p then 826 elseif '/' == p then
826 local cnt = 3 827 local cnt = 3
827 for j = 1, #p do 828 for j = 1, #p do
828 if '/' == p:sub(j, j) then cnt = cnt + 1 end 829 if '/' == p:sub(j, j) then cnt = cnt + 1 end
829 end 830 end
831 if p:sub(1, 9) ~= 'DocuWiki/' then cnt = cnt + 1 end
832 if ur:sub(-4) ~= '.png' then ur = ur .. '.HTML'; cnt = cnt - 2 end
830 url = string.rep('../', cnt) .. 'DocuWiki/pages' .. p .. ur 833 url = string.rep('../', cnt) .. 'DocuWiki/pages' .. p .. ur
831 else 834]]
832 url = url .. '.HTML'
833 end
834 end
835 end
836 end
837 end 835 end
838 if (url:sub(-4) ~= '.png') and (url:sub(-5) ~= '.HTML') then url = url .. '.HTML' end 836 if (url:sub(-4) ~= '.png') and (url:sub(-5) ~= '.HTML') then url = url .. '.HTML' end
839 return url 837 return url