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:
757f40c
)
Fixed warning introduced in r59702
author
Max Semenik
<maxsem@users.mediawiki.org>
Thu, 3 Dec 2009 20:18:28 +0000
(20:18 +0000)
committer
Max Semenik
<maxsem@users.mediawiki.org>
Thu, 3 Dec 2009 20:18:28 +0000
(20:18 +0000)
includes/filerepo/File.php
patch
|
blob
|
history
diff --git
a/includes/filerepo/File.php
b/includes/filerepo/File.php
index
9968ace
..
bb34529
100644
(file)
--- a/
includes/filerepo/File.php
+++ b/
includes/filerepo/File.php
@@
-561,7
+561,10
@@
abstract class File {
wfDebug( __METHOD__.": Doing stat for $thumbPath\n" );
$this->migrateThumbFile( $thumbName );
- if ( ( $thumbTime = filemtime( $thumbPath ) ) !== FALSE && gmdate( 'YmdHis', $thumbTime ) >= $wgThumbnailEpoch ) {
+ if ( file_exists( $thumbPath )
+ && ( $thumbTime = filemtime( $thumbPath ) ) !== FALSE
+ && gmdate( 'YmdHis', $thumbTime ) >= $wgThumbnailEpoch )
+ {
$thumb = $this->handler->getTransform( $this, $thumbPath, $thumbUrl, $params );
break;
}