includes/filerepo/FileRepo.php 1 location
|
@@ 510-517 (lines=8) @@
|
507 |
|
$file = $this->findFile( $title, $options ); |
508 |
|
if ( $file ) { |
509 |
|
$searchName = File::normalizeTitle( $title )->getDBkey(); // must be valid |
510 |
|
if ( $flags & self::NAME_AND_TIME_ONLY ) { |
511 |
|
$result[$searchName] = [ |
512 |
|
'title' => $file->getTitle()->getDBkey(), |
513 |
|
'timestamp' => $file->getTimestamp() |
514 |
|
]; |
515 |
|
} else { |
516 |
|
$result[$searchName] = $file; |
517 |
|
} |
518 |
|
} |
519 |
|
} |
520 |
|
|
includes/filerepo/LocalRepo.php 1 location
|
@@ 348-355 (lines=8) @@
|
345 |
|
$file = $this->newFile( $redir ); |
346 |
|
if ( $file && $fileMatchesSearch( $file, $search ) ) { |
347 |
|
$file->redirectedFrom( $title->getDBkey() ); |
348 |
|
if ( $flags & FileRepo::NAME_AND_TIME_ONLY ) { |
349 |
|
$finalFiles[$dbKey] = [ |
350 |
|
'title' => $file->getTitle()->getDBkey(), |
351 |
|
'timestamp' => $file->getTimestamp() |
352 |
|
]; |
353 |
|
} else { |
354 |
|
$finalFiles[$dbKey] = $file; |
355 |
|
} |
356 |
|
} |
357 |
|
} |
358 |
|
} |