Module:Protection banner: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
imported>Info-farmer சி en:Module:Protection_banner இலிருந்து திருத்தங்கள் இறக்குமதி செய்யப்பட்டன: மல்லிகைப் பேரின சிற்றினத்திற்காக இதனைப் பதிவிறக்குகிறேன் |
imported>Krinkle Update from master using #Synchronizer |
||
| (3 பயனர்களால் செய்யப்பட்ட 3 இடைப்பட்ட திருத்தங்கள் காட்டப்படவில்லை.) | |||
வரிசை 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
வரி 865 ⟶ 875:
if yesno(args.category) ~= false then
ret[#ret + 1] = protectionObj:makeCategoryLinks()
end
-- For arbitration enforcement, flagging [[WP:PIA]] pages to enable [[Special:AbuseFilter/1339]] to flag edits to them
if protectionObj.level == "extendedconfirmed" then
if require("Module:TableTools").inArray(protectionObj.title.talkPageTitle.categories, "Wikipedia pages subject to the extended confirmed restriction related to the Arab-Israeli conflict") then
ret[#ret + 1] = "<p class='PIA-flag' style='display:none; visibility:hidden;' title='This page is subject to the extended confirmed restriction related to the Arab-Israeli conflict.'></p>"
end
end
| |||