Изменения

откат
Строка 225: Строка 225:  
self.issue = args.smalltext
 
self.issue = args.smalltext
 
else
 
else
if args.sect then
+
local sect
local issue_sect = args.issue_sect
+
if args.sect == '' then
issue = type(issue_sect) == 'string' and issue_sect ~= '' and issue_sect or nil
+
sect = '<span style="font-weight:bold">Эта ' .. (cfg.sectionDefault or 'статья') .. '</span>'
table.insert(issues, issue_sect)
+
elseif type(args.sect) == 'string' then
local issues = {}
+
sect = '<span style="font-weight:bold">' .. args.sect .. '</span>'
else
+
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
Строка 236: Строка 236:  
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)
end
   
self.issue = table.concat(issues, ' ')
 
self.issue = table.concat(issues, ' ')
 
end
 
end
Анонимный участник