Index: branches/filerepo-work/phase3/includes/filerepo/LocalFile.php |
— | — | @@ -1310,7 +1310,7 @@ |
1311 | 1311 | function newFromTitle( $title, $time = false ) { |
1312 | 1312 | $img = wfFindFile( $title, $time ); |
1313 | 1313 | if ( !$img ) { |
1314 | | - $img = wfLocalFile( $time ); |
| 1314 | + $img = wfLocalFile( $title ); |
1315 | 1315 | } |
1316 | 1316 | return $img; |
1317 | 1317 | } |