From: Reedy Date: Fri, 18 Oct 2013 17:13:57 +0000 (+0100) Subject: importImages.php: Correctly generate automatic summary X-Git-Tag: 1.31.0-rc.0~18477^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=310616396c0329f911b7325450f7a46d08e03c19;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; }