Skip to content

Commit

Permalink
chore: add deprecated to old azure lib name
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhilton committed Oct 24, 2024
1 parent b4c35fb commit 58d2e79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/local/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,18 +306,18 @@ public static function check_file_storage_filesystem() {
public static function get_available_fs_list() {
$result[''] = get_string('pleaseselect', OBJECTFS_PLUGIN_NAME);

$filesystems['\tool_objectfs\azure_file_system'] = '\tool_objectfs\azure_file_system';
$filesystems['\tool_objectfs\azure_file_system'] = '\tool_objectfs\azure_file_system [DEPRECATED]';
$filesystems['\tool_objectfs\digitalocean_file_system'] = '\tool_objectfs\digitalocean_file_system';
$filesystems['\tool_objectfs\s3_file_system'] = '\tool_objectfs\s3_file_system';
$filesystems['\tool_objectfs\swift_file_system'] = '\tool_objectfs\swift_file_system';
$filesystems['\tool_objectfs\azure_blob_storage_file_system'] = '\tool_objectfs\azure_blob_storage_file_system';

foreach ($filesystems as $filesystem) {
foreach ($filesystems as $filesystem => $name) {
$clientclass = self::get_client_classname_from_fs($filesystem);
$client = new $clientclass(null);

if ($client && $client->get_availability()) {
$result[$filesystem] = $filesystem;
$result[$filesystem] = $name;
}
}
return $result;
Expand Down

0 comments on commit 58d2e79

Please sign in to comment.