Skip to content

Commit

Permalink
Fix file capitlization regression
Browse files Browse the repository at this point in the history
Fixes #491
  • Loading branch information
JeroenDeDauw committed Nov 21, 2018
1 parent df4d72c commit 05e67b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Under development

* The `rotate` control for Google Maps is now enabled by default (changeable via `$egMapsGMaps3Controls`) (by @acnetj)
* The `layers` parameter for Google Maps now works again (5.2.0 regression)
* Files can again be referenced without capitalizing the first letter (3.0.0 regression)
* Removed broken SMW `_gpo` data type

## Maps 6.0.4
Expand Down
2 changes: 1 addition & 1 deletion src/MapsFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public static function getFileUrl( $file ): string {

$titleWithoutPrefix = $colonPosition === false ? $file : substr( $file, $colonPosition + 1 );

$title = Title::makeTitle( NS_FILE, trim( $titleWithoutPrefix ) );
$title = Title::newFromText( trim( $titleWithoutPrefix ), NS_FILE );

if ( $title !== null && $title->exists() ) {
$imagePage = new ImagePage( $title );
Expand Down

0 comments on commit 05e67b1

Please sign in to comment.