From 310616396c0329f911b7325450f7a46d08e03c19 Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 18 Oct 2013 18:13:57 +0100 Subject: [PATCH] importImages.php: Correctly generate automatic summary 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/importImages.php b/maintenance/importImages.php index f6f50f8224..54fd4e2d88 100644 --- a/maintenance/importImages.php +++ b/maintenance/importImages.php @@ -248,7 +248,7 @@ if ( $count > 0 ) { } $commentText = SpecialUpload::getInitialPageText( $commentText, $license ); - if ( !$summary ) { + if ( !isset( $options['summary'] ) ) { $summary = $commentText; } -- 2.20.1