Skip to content

Commit

Permalink
Fixed Asset Url
Browse files Browse the repository at this point in the history
Fixed Asset Url
  • Loading branch information
Shipu authored Nov 23, 2017
1 parent 4a5d3b7 commit 87378ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Managers/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ public function assets($path, $secure = null)

$themeInfo = $this->getThemeInfo($themeName);

$themePath = str_replace(base_path().'/', '', $themeInfo->get('path')).'/';
if ( $this->config[ 'theme.symlink' ] ) {
$themePath = 'Themes/' . $themeName . '/';
} else {
$themePath = str_replace(base_path('public') . '/', '', $themeInfo->get('path')) . '/';
}

$assetPath = $this->config['theme.folders.assets'].'/';
$fullPath = $themePath.$assetPath.$path;

Expand Down

0 comments on commit 87378ec

Please sign in to comment.