Module talk:Lua banner
Latest comment: 4 years ago by Koavf in topic "local currentProt" change request
"local currentProt" change request[edit]
{{Edit request}}
Can someone please change
local currentProt = titleObj.protectionLevels["edit"][1]
to
local currentProt
if titleObj.id ~= 0 then
-- id is 0 (page does not exist) if am previewing before creating a template.
currentProt = titleObj.protectionLevels["edit"][1]
end
? The currently functions result some other modules breaking. --Liuxinyu970226 (talk) 05:09, 28 November 2019 (UTC)
- Done @Liuxinyu970226: Is this good now? —Justin (koavf)❤T☮C☺M☯ 03:05, 17 February 2020 (UTC)