Skip to content

Commit

Permalink
add File Category Folder, BasePath
Browse files Browse the repository at this point in the history
  • Loading branch information
XisoDev committed Apr 18, 2020
1 parent a59c3b1 commit e10e810
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/Handlers/LfmConfigHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function SharedFolderName()

public function FolderName($file_type = 'file')
{
return parent::FolderName($file_type);
return self::getBasePath(parent::FolderName($file_type));
}

public function StartView($file_type = 'file')
Expand All @@ -33,4 +33,8 @@ public function MaxSize($file_type = 'file')
{
return parent::MaxSize($file_type);
}

private function getBasePath($directory = 'file'){
return "amuzcms/" . $directory;
}
}
2 changes: 1 addition & 1 deletion src/Lfm.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getCategoryName()
}

if (class_exists($config)) {
return app()->make($config)->FolderName();
return app()->make($config)->FolderName($type);
}

return $config;
Expand Down

0 comments on commit e10e810

Please sign in to comment.