Skip to content

Commit

Permalink
fix: change the config to use backend.skin
Browse files Browse the repository at this point in the history
  • Loading branch information
cydrickn committed Jul 9, 2022
1 parent 4ce06dc commit 37ad4a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function boot()
{
$this->app->instance('path.backendskins', $this->backendSkinPaths());
Config::set('cms.backendSkin', BackendSkin::class);
Config::set('backend.skin', BackendSkin::class);
Event::subscribe(new PluginEventSubscriber());
WidgetBase::extendableExtendCallback(function (WidgetBase $widget) {
$origViewPath = $widget->guessViewPath();
Expand Down
2 changes: 1 addition & 1 deletion traits/AssetMaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public function getAssetPath($fileName, $assetPath = null)
$publicSkinAssetPath = $this->getActiveSkin()->publicSkinPath . '/views/' . ltrim($path, '/');
$skinAssetPath = $this->getActiveSkin()->skinPath . '/views/' . ltrim($path, '/');
if (file_exists($skinAssetPath)) {
$path = $publicSkinAssetPath;
return $publicSkinAssetPath;
}

return $assetPath . '/' . $fileName;
Expand Down
2 changes: 2 additions & 0 deletions updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
2.0.0:
- Compatibility for version 2 and 3
- Breaking changes! his version will not work for version 1
2.0.1:
- Fix where the backend skin does not fetch the custom themes

0 comments on commit 37ad4a4

Please sign in to comment.