Skip to content

Commit

Permalink
Merge pull request zendframework#4835 from ThaDafinser/patch-12
Browse files Browse the repository at this point in the history
Update templatemap_generator.php
  • Loading branch information
weierophinney committed Jul 17, 2013
2 parents 9421166 + c8dd804 commit b71eeb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/templatemap_generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
// Add in relative path to library
$filename = $relativePathForMap . $filename;
$baseName = $file->getBasename('.' . $file->getExtension());
$mapName = str_replace($libraryPath . '/', '', str_replace(DIRECTORY_SEPARATOR, '/', $file->getPath()) . '/' . $baseName);
$mapName = str_replace(str_replace(DIRECTORY_SEPARATOR, '/', realpath($viewPath)) . '/', '', str_replace(DIRECTORY_SEPARATOR, '/', $file->getPath()) . '/' . $baseName);
$map->{$mapName} = $filename;
}

Expand Down

0 comments on commit b71eeb6

Please sign in to comment.