890
pakeitimų
S (1 keitimas importuoti) |
SNėra keitimo santraukos |
||
| 135 eilutė: | 135 eilutė: | ||
if not docText and not noDoc then | if not docText and not noDoc then | ||
f:callParserFunction( '#dplvar:set', '$doc noheader', '1' ) | f:callParserFunction( '#dplvar:set', '$doc noheader', '1' ) | ||
docText = trim( f:expandTemplate{ title = ':' .. docPage.fullText } | if docPage.fullText ~= page.fullText then | ||
docText = trim( f:expandTemplate{ title = ':' .. docPage.fullText } ) | |||
end | |||
if docPage.fullText == page.fullText then | |||
mw.log("Prevented recursive doc inclusion on " .. docPage.fullText) | |||
end | |||
if f:callParserFunction( '#dplvar', '$doc bad' ) == '1' then | if f:callParserFunction( '#dplvar', '$doc bad' ) == '1' then | ||
badDoc = 1 | badDoc = 1 | ||