Modul:Protection banner: Unterschied zwischen den Versionen

allow the template reason to show the red padlock in any namespace
K (fix a few mistakes)
(allow the template reason to show the red padlock in any namespace)
Zeile 701: Zeile 701:
local level = protectionObj.level
local level = protectionObj.level
local namespace = protectionObj.title.namespace
local namespace = protectionObj.title.namespace
local reason = protectionObj.reason
-- Deal with special cases first.
-- Deal with special cases first.
if (namespace == 10 or namespace == 828)
if (
namespace == 10
or namespace == 828
or reason and obj._cfg.imageIndefReasons[reason]
)
and action == 'edit'
and action == 'edit'
and level == 'sysop'
and level == 'sysop'
Anonymer Benutzer