dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
153469a
)
importImages.php: Correctly generate automatic summary
author
Reedy
<reedy@wikimedia.org>
Fri, 18 Oct 2013 17:13:57 +0000
(18:13 +0100)
committer
Bartosz 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
patch
|
blob
|
history
diff --git
a/maintenance/importImages.php
b/maintenance/importImages.php
index
f6f50f8
..
54fd4e2
100644
(file)
--- 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;
}