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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: DatedCategoryCreator: * Fix Category:Clean-up categories subcat creation.
AnomieBOT (talk | contribs)
Updating published sources: DatedCategoryCreator: * Stop creating categories older than 2010. It seems "200X" as a typo for "202X" is fairly common.
Line 215:
return 0 if $y>$t[5]+1900;
return 0 if($y==$t[5]+1900 && $monthnum{$m}>$t[4]+1);
return 0 if(!exists($oldcats{$parent}) && $y<20042010);
 
# Check whether the parent cat actually exists and is a subcat of the meta