Skip to content

Commit

Permalink
fix(Extension): Remove undefined variable and ensure destinationPath …
Browse files Browse the repository at this point in the history
…is lowercase to ensure the assets can be accessed via public URL
  • Loading branch information
Patrick Mulligan committed Apr 11, 2024
1 parent 78de048 commit e7e3ac9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/Modules/Core/Models/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,15 @@ public function validateFormData($form, $data, $group = null)
*/
public function publish(): void
{
$sourcePath = $this->path();
$sourcePath = $this->path() . '/assets';

$path = ucfirst($this->type) . 's';
if ($this->type == 'listener')
{
$path .= '/' . strtolower($item->folder);
$path .= '/' . strtolower($this->folder);
}
$path .= '/' . strtolower($item->element);
$path .= '/' . strtolower($this->element);
$path = strtolower($path);
$destinationPath = public_path($path);
$files = app('files');

Expand Down

0 comments on commit e7e3ac9

Please sign in to comment.