diff --git a/web/skins/classic/views/storage.php b/web/skins/classic/views/storage.php index e6b459c5e..067881298 100644 --- a/web/skins/classic/views/storage.php +++ b/web/skins/classic/views/storage.php @@ -24,7 +24,7 @@ if ( !canEdit( 'System' ) ) { } if ( $_REQUEST['id'] ) { - if ( !($newStorage = dbFetchOne( 'SELECT * FROM Storage WHERE Id = ?', NULL, ARRAY($_REQUEST['id'])) ) ) { + if ( !($newStorage = dbFetchOne('SELECT * FROM Storage WHERE Id=?', NULL, ARRAY($_REQUEST['id'])) ) ) { $view = 'error'; return; } @@ -32,8 +32,11 @@ if ( $_REQUEST['id'] ) { $newStorage = array(); $newStorage['Name'] = translate('NewStorage'); $newStorage['Path'] = ''; + $newStorage['Type'] = 'local'; } +$type_options = array( 'local' => translate('Local'), 's3fs' => translate('s3fs') ); + $focusWindow = true; xhtmlHeaders(__FILE__, translate('Storage')." - ".$newStorage['Name'] ); @@ -48,7 +51,7 @@ xhtmlHeaders(__FILE__, translate('Storage')." - ".$newStorage['Name'] ); - +
@@ -58,6 +61,10 @@ xhtmlHeaders(__FILE__, translate('Storage')." - ".$newStorage['Name'] ); + + + +