Module:Protection banner: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
imported>Ravidreams சி en:Module:Protection_banner இலிருந்து திருத்தம் இறக்குமதி செய்யப்பட்டன |
imported>Krinkle Update from master using #Synchronizer |
||
| (பயனரால் செய்யப்பட்ட ஒரு இடைப்பட்ட திருத்தம் காட்டப்படவில்லை.) | |||
வரிசை 323:
function Protection:isIncorrect()
local expiry = self.expiry▼
return true
▲ return not self:shouldHaveProtectionCategory()
end
or type(expiry) == 'number' and expiry < os.time()▼
if type(self.expiry) ~= 'number' then
return false
end
▲ local expiry = os.date('*t', self.expiry)
-- Avoid checking today.day or os.time(), unless close. https://phabricator.wikimedia.org/T416616
local today = os.date('*t')
return (expiry.year < today.year)
or (expiry.year == today.year and expiry.month == today.month and expiry.day < today.day)
or (expiry.year == today.year and expiry.month == today.month and expiry.day == today.day and self.expiry < os.time())
end
| |||