mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 08:32:14 +00:00
- Moved chunk size option to .env
- Added ability into App Settings to flush application cache - Renew password page logo fix - removed put|patch|delete methods from axios and replaced by faking these methods to support incompatible shared hostings where you can't install php extension to support these methods. - Getting unique_ids fix
This commit is contained in:
@@ -244,12 +244,12 @@ function is_editor($shared)
|
||||
function get_unique_id(): int
|
||||
{
|
||||
// Get files and folders
|
||||
$folders = FileManagerFolder::withTrashed()->get();
|
||||
$files = FileManagerFile::withTrashed()->get();
|
||||
$folders = FileManagerFolder::withTrashed()->latest();
|
||||
$files = FileManagerFile::withTrashed()->latest();
|
||||
|
||||
// Get last ids
|
||||
$folders_unique = $folders->isEmpty() ? 0 : (int) $folders->last()->unique_id;
|
||||
$files_unique = $files->isEmpty() ? 0 : (int) $files->last()->unique_id;
|
||||
$folders_unique = ! $folders->first() ? 0 : (int) $folders->first()->unique_id;
|
||||
$files_unique = ! $files->first() ? 0 : (int) $files->first()->unique_id;
|
||||
|
||||
// Count new unique id
|
||||
$unique_id = $folders_unique > $files_unique ? $folders_unique + 1 : $files_unique + 1;
|
||||
|
||||
Reference in New Issue
Block a user