summaryrefslogtreecommitdiff
path: root/upload-wiki.pl
diff options
context:
space:
mode:
Diffstat (limited to 'upload-wiki.pl')
-rwxr-xr-xupload-wiki.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/upload-wiki.pl b/upload-wiki.pl
index 58de4fbe03..a42d809342 100755
--- a/upload-wiki.pl
+++ b/upload-wiki.pl
@@ -136,7 +136,7 @@ sub upload_article {
RETRY:
print "Uploading page '$pagename'\n";
- if ( $mw->edit( {
+ unless ( $mw->edit( {
action => 'edit',
title => $pagename,
text => $text }, { skip_encoding => 1 } ) )