Module:Effective protection level: Difference between revisions
Content added Content deleted
m (1 revision imported from w:en:Module:Effective_protection_level) |
Enwikipedia>Mr. Stradivarius (mw.ext.FlaggedRevs.getStabilitySettings can return nil, so avoid trying to index it when this happens) |
||
Line 14: | Line 14: | ||
pagename = title.prefixedText |
pagename = title.prefixedText |
||
if action == 'autoreview' then |
if action == 'autoreview' then |
||
local level = mw.ext.FlaggedRevs.getStabilitySettings(title) |
local level = mw.ext.FlaggedRevs.getStabilitySettings(title) |
||
level = level and level.autoreview |
|||
if level == 'review' then |
if level == 'review' then |
||
return 'reviewer' |
return 'reviewer' |