Skip to content

Commit

Permalink
Merge pull request #249 from DMeganoski/patch-1
Browse files Browse the repository at this point in the history
Update LaravelLocalization.php
  • Loading branch information
Marc Cámara committed Sep 22, 2015
2 parents d0a3d9a + 85ddc99 commit d01d824
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Mcamara/LaravelLocalization/LaravelLocalization.php
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,12 @@ protected function extractAttributes($url = false)
{
$attributes = [];
$parse = parse_url($url);
$parse = explode("/", $parse['path']);
if ( isset( $parse[ 'path' ] ) ) {
$parse = explode("/", $parse[ 'path' ]);
}
else {
$parse = [];
}
$url = [];
foreach ($parse as $segment)
{
Expand Down

0 comments on commit d01d824

Please sign in to comment.