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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: General: * BREAKING CHANGE: $api->edittoken() now takes named parameters for parameters other than $page. * $api->edittoken() has two new options, to disable the shutoff or {{tl|bots}} checking. SourceUploader: * Add two m
AnomieBOT (talk | contribs)
Updating published sources: General: * BREAKING CHANGE: And it's a big one: ** Data store changed from (binary) Storable to (readable) JSON. update-db.pl will change an existing database. This may affect the exact values storable in the permanent sto
Line 64:
$self->{'order'}=-1000;
 
my $basedir=$AnomieBOT::TaskAPI::basedir;
$basedir=~s{/$}{};
if(!-d $basedir){
Line 371:
my $status=$metadata{'status'};
 
AnomieBOT::TaskAPI::load($file);
my $task='tasks::'.$metadata{'task'};
return '99 Invalid metadata' unless $task->can('approved');