Index: trunk/phase3/includes/filerepo/RepoGroup.php |
— | — | @@ -91,7 +91,8 @@ |
92 | 92 | foreach ( $titles as $title ) { |
93 | 93 | if ( !( $title instanceof Title ) ) |
94 | 94 | $title = Title::makeTitleSafe( NS_FILE, $title ); |
95 | | - $titleObjs[$title->getDBkey()] = $title; |
| 95 | + if ( $title ) |
| 96 | + $titleObjs[$title->getDBkey()] = $title; |
96 | 97 | } |
97 | 98 | |
98 | 99 | $images = $this->localRepo->findFiles( $titleObjs, $flags ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -392,6 +392,8 @@ |
393 | 393 | * (bug 16577) When a blocked user tries to rollback a page, the block message |
394 | 394 | is now only displayed once |
395 | 395 | * (bug 14268) SVG image sizes now extracted with proper XML parser |
| 396 | +* (bug 14365) RepoGroup::findFiles() no longer crashes if passed an invalid |
| 397 | + title via the API |
396 | 398 | |
397 | 399 | === API changes in 1.14 === |
398 | 400 | |