Modul:Effective protection level: Unterschied zwischen den Versionen
Modul:Effective protection level (Quelltext anzeigen)
Version vom 3. März 2016, 12:47 Uhr
, vor 8 Jahrenmw.ext.FlaggedRevs.getStabilitySettings can return nil, so avoid trying to index it when this happens
(use FlaggedRevs' Lua library instead of calling the parser) |
(mw.ext.FlaggedRevs.getStabilitySettings can return nil, so avoid trying to index it when this happens) |
||
Zeile 14: | Zeile 14: | ||
pagename = title.prefixedText | pagename = title.prefixedText | ||
if action == 'autoreview' then | if action == 'autoreview' then | ||
local level = mw.ext.FlaggedRevs.getStabilitySettings(title).autoreview | local level = mw.ext.FlaggedRevs.getStabilitySettings(title) | ||
level = level and level.autoreview | |||
if level == 'review' then | if level == 'review' then | ||
return 'reviewer' | return 'reviewer' |