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:
996e901
)
The if should check $commentText, not $f, which is always set in this branch.
author
Platonides
<platonides@users.mediawiki.org>
Fri, 27 Jan 2012 21:06:00 +0000
(21:06 +0000)
committer
Platonides
<platonides@users.mediawiki.org>
Fri, 27 Jan 2012 21:06:00 +0000
(21:06 +0000)
maintenance/importImages.php
patch
|
blob
|
history
diff --git
a/maintenance/importImages.php
b/maintenance/importImages.php
index
7e4d5e2
..
bd077ff
100644
(file)
--- a/
maintenance/importImages.php
+++ b/
maintenance/importImages.php
@@
-206,7
+206,7
@@
if ( $count > 0 ) {
echo( " No comment file with extension {$commentExt} found for {$file}, using default comment. " );
} else {
$commentText = file_get_contents( $f );
- if ( !$
f
) {
+ if ( !$
commentText
) {
echo( " Failed to load comment file {$f}, using default comment. " );
}
}