Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Commit 7a64e9c

Browse files
author
Kerem
committed
Fixed issue with assetLink path
1 parent 8fbeabf commit 7a64e9c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All notable changes to `laravel-theme` will be documented in this file.
33

4+
## 1.0.4 - 2019-08-17
5+
- Fixed issue with `assetLink` path.
6+
47
## 1.0.3 - 2019-08-16
58
- Fixed ServiceProvider location bug.
69

src/Theme.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ public function assetLink($style,$param, $secure = false)
1616
if($style == "css")
1717
{
1818
if ($secure == true) {
19-
return '<link rel="stylesheet" type="text/css" href="'.secure_asset(config('theme.assets_path').'/'.config('theme.current_theme').'/'.$param).'"/>';
19+
return '<link rel="stylesheet" type="text/css" href="'.secure_asset(config('theme.public_path').'/'.config('theme.current_theme').'/'.$param).'"/>';
2020
}
21-
return '<link rel="stylesheet" type="text/css" href="'.asset(config('theme.assets_path').'/'.config('theme.current_theme').'/'.$param).'"/>';
21+
return '<link rel="stylesheet" type="text/css" href="'.asset(config('theme.public_path').'/'.config('theme.current_theme').'/'.$param).'"/>';
2222
}
2323
if($style == "js")
2424
{
2525
if ($secure == true) {
26-
return '<script src="'.secure_asset(config('theme.assets_path').'/'.config('theme.current_theme').'/'.$param).'"></script>';
26+
return '<script src="'.secure_asset(config('theme.public_path').'/'.config('theme.current_theme').'/'.$param).'"></script>';
2727
}
28-
return '<script src="'.asset(config('theme.assets_path').'/'.config('theme.current_theme').'/'.$param).'"></script>';
28+
return '<script src="'.asset(config('theme.public_path').'/'.config('theme.current_theme').'/'.$param).'"></script>';
2929
}
3030
}
3131

0 commit comments

Comments
 (0)