Skip to content

Commit

Permalink
Double slash fixed, unused class removed
Browse files Browse the repository at this point in the history
  • Loading branch information
grinry committed Jul 25, 2015
1 parent 004c8e2 commit 597161d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
23 changes: 0 additions & 23 deletions URL.php

This file was deleted.

4 changes: 2 additions & 2 deletions UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ private function toUrl($path, $extra = [], $secure = null)
return $path;
}
if (array_key_exists('language', $extra)) {
$path = $extra['language'] . '/' . $path;
$path = $extra['language'] . '/' . trim($path, '/');
unset($extra['language']);
} else {
$path = App::getLocale() . '/'. $path;
$path = App::getLocale() . '/' . trim($path, '/');
}
$scheme = $this->getScheme($secure);

Expand Down

0 comments on commit 597161d

Please sign in to comment.