Изменения
Перейти к навигации
Перейти к поиску
Строка 225:
Строка 225:
− +
− local issue_sect = args.issue_sect +
− issue = type(issue_sect) == 'string' and issue_sect ~= '' and issue_sect or nil+
− table.insert(issues, issue_sect)+
− local issues = {}+
− else +
Строка 236:
Строка 236:
+
− end
откат
self.issue = args.smalltext
self.issue = args.smalltext
else
else
if args.sect then
local sect
if args.sect == '' then
sect = '<span style="font-weight:bold">Эта ' .. (cfg.sectionDefault or 'статья') .. '</span>'
elseif type(args.sect) == 'string' then
sect = '<span style="font-weight:bold">' .. args.sect .. '</span>'
end
local issue = args.issue
local issue = args.issue
issue = type(issue) == 'string' and issue ~= '' and issue or nil
issue = type(issue) == 'string' and issue ~= '' and issue or nil
text = type(text) == 'string' and text or nil
text = type(text) == 'string' and text or nil
local issues = {}
local issues = {}
table.insert(issues, sect)
table.insert(issues, issue)
table.insert(issues, issue)
table.insert(issues, text)
table.insert(issues, text)
self.issue = table.concat(issues, ' ')
self.issue = table.concat(issues, ' ')
end
end