Skip to content

Commit

Permalink
Update DB_ServiceProvider.php
Browse files Browse the repository at this point in the history
Revert back `file_exists()` and `is_dir()` function usage, return back the path as before only by fixing the theme name.
  • Loading branch information
FatihKoz committed Sep 17, 2024
1 parent 15890ce commit 3cafe23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Providers/DB_ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,16 @@ public function registerViews()

$this->publishes([$sourcePath => $viewPath,], 'views');

$this->loadViewsFrom(array_merge(array_map(function ($path) {
return str_replace('default', setting('general.theme'), $path) . '/modules/DisposableBasic';
}, \Config::get('view.paths')), [$sourcePath]), 'DBasic');

/*
$this->loadViewsFrom(array_merge(array_filter(array_map(function ($path) {
$path = str_replace('default', setting('general.theme'), $path).'/modules/DisposableBasic';
return (file_exists($path) && is_dir($path)) ? $path : null;
}, \Config::get('view.paths'))), [$sourcePath]), 'DBasic');
*/
}

public function provides(): array
Expand Down

0 comments on commit 3cafe23

Please sign in to comment.