diff options
author | Andras Timar <andras.timar@collabora.com> | 2014-02-20 14:33:45 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-02-20 14:33:45 +0100 |
commit | db935b234688a7d4690246e48530c3d3f99b5fe3 (patch) | |
tree | 9803fd134e4ae69ed277276febdf7874e18980b8 /upload-wiki.pl | |
parent | d7a29031adf51b1ae5eee7cbeb4ff4f33c6e5675 (diff) |
use 'unless' instead of 'if'
Change-Id: Ie40681e6f7097a1d9b2935e238cfb0ecfb840db4
Diffstat (limited to 'upload-wiki.pl')
-rwxr-xr-x | upload-wiki.pl | 2 |
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 } ) ) |