User:AnomieBOT/source/tasks/PERTableUpdater.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: PERTableUpdater: * Don't override full protection from the title blacklist with direct semi-protection. Or, for that matter, MediaWiki-namespace protection with anything, or user-script protection with semi-protection.
AnomieBOT (talk | contribs)
Updating published sources: PERTableUpdater: * On CAT:ESP, mark MediaWiki, user script, and most Title Blacklist entries as red instead of yellow.
Line 170:
$pd->{'reason'}='';
if($p->{'ns'}==8){
$pd->{'color'}='yellow' unless $sper;
$pd->{'prottype'}='MediaWiki page';
$protscore=8;
} elsif($p->{'ns'}==2 && $t=~m!/.*\.js$!){
$pd->{'color'}='yellow' unless $sper;
$pd->{'prottype'}='User JS page';
$protscore=2;
} elsif($p->{'ns'}==2 && $t=~m!/.*\.css$!){
$pd->{'color'}='yellow' unless $sper;
$pd->{'prottype'}='User CSS page';
$protscore=2;
Line 186:
my $sc=exists($data->{'opts'}{'autoconfirmed'})?0:4;
next if $sc<$protscore;
$pd->{'color'}='yellow' unless(exists($data->{'opts'}{'autoconfirmed'}) && != $sper);
$pd->{'prottype'}=$data->{'source'};
my $line=$data->{'line'};