importImages.php: Correctly generate automatic summary
authorReedy <reedy@wikimedia.org>
Fri, 18 Oct 2013 17:13:57 +0000 (18:13 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 18 Oct 2013 17:44:48 +0000 (17:44 +0000)
If the summary parameter is not set, then use the page text of the
given page, NOT that of the first image uploaded.

Bug: 55885
Change-Id: I00ced9d2ce62fc1a00f26ff513866359cf96d535

maintenance/importImages.php

index f6f50f8..54fd4e2 100644 (file)
@@ -248,7 +248,7 @@ if ( $count > 0 ) {
                }
 
                $commentText = SpecialUpload::getInitialPageText( $commentText, $license );
-               if ( !$summary ) {
+               if ( !isset( $options['summary'] ) ) {
                        $summary = $commentText;
                }