Skip to content

Commit

Permalink
Fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dren-dk committed Jun 16, 2011
1 parent 6cd73d5 commit db6c42a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions jpeg2wiki/addphotos
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ for my $file (@files) {
$xml .= qq' <image name="$file"/>\n';
}
}
$xml .= qq' </item>\n' if @files;
$xml .= qq'</gear>\n';

open X, ">$sourcedir/import.xml" or die "Urgh!";
Expand Down
2 changes: 1 addition & 1 deletion jpeg2wiki/uploadtowiki
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ for my $id (keys %{$meta->{item}}) {
dieState "Failed to upload $ofn as $wn" unless $m->status == 200;
}

dieState "Did not find any images" unless @images;
dieState "Did not find any images for $id" unless @images;

print "Creating page $item->{url} for $item->{title}\n";
my $wiki = <<"EOW";
Expand Down

0 comments on commit db6c42a

Please sign in to comment.