Изменения
Перейти к навигации
Перейти к поиску
Строка 225:
Строка 225:
− 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>' +
+
+
+
+
+
+
+
+
+
+
− local issue = args.issue
− issue = type(issue) == 'string' and issue ~= '' and issue or nil
− local text = args.text
− text = type(text) == 'string' and text or nil
− local issues = {}
− table.insert(issues, sect)
− table.insert(issues, issue)
− table.insert(issues, text)
− self.issue = table.concat(issues, ' ')
создаем раздельные сообщения для раздела и статьи
self.issue = args.smalltext
self.issue = args.smalltext
else
else
if args.sect then
local issue_sect = args.issue_sect
issue_sect = type(issue_sect) == 'string' and issue_sect ~= '' and issue_sect or nil
local issues = {}
table.insert(issues, issue_sect)
self.issue = table.concat(issues, ' ')
else
local issue = args.issue
issue = type(issue) == 'string' and issue ~= '' and issue or nil
local text = args.text
text = type(text) == 'string' and text or nil
local issues = {}
table.insert(issues, issue)
table.insert(issues, text)
self.issue = table.concat(issues, ' ')
end
end
end
end