Fix usage
This commit is contained in:
parent
1901716479
commit
99239e3d99
3 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ HELP;
|
|||
$this->out(sprintf($rowfmt, 'Sel', 'Name'));
|
||||
$this->out('-----------------------');
|
||||
$isregisterd = false;
|
||||
foreach ($this->storageManager->listBackends() as $name => $class) {
|
||||
foreach ($this->storageManager->listBackends() as $name) {
|
||||
$issel = ' ';
|
||||
if ($current && $current::getName() == $name) {
|
||||
$issel = '*';
|
||||
|
|
|
@ -215,7 +215,7 @@ class StorageManager
|
|||
/**
|
||||
* Get registered backends
|
||||
*
|
||||
* @return Storage\IWritableStorage[]
|
||||
* @return string[]
|
||||
*/
|
||||
public function listBackends(): array
|
||||
{
|
||||
|
|
|
@ -96,7 +96,7 @@ class Storage extends BaseAdmin
|
|||
$current_storage_backend = DI::storage();
|
||||
$available_storage_forms = [];
|
||||
|
||||
foreach (DI::storageManager()->listBackends() as $name => $class) {
|
||||
foreach (DI::storageManager()->listBackends() as $name) {
|
||||
|
||||
// build storage config form,
|
||||
$storage_form_prefix = preg_replace('|[^a-zA-Z0-9]|', '', $name);
|
||||
|
|
Loading…
Reference in a new issue