diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-10-11 14:47:28 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-10-11 14:48:31 +0300 |
commit | a2445888e803bb62322aa83c1be239cbf0a8227c (patch) | |
tree | ab3ca4672a59050fd63a75d75066ccc329e4c9c0 /core/templates/installation.php | |
parent | 31714f8871eb21b9c6097e0c4edcbe97fb8a35a3 (diff) | |
download | nextcloud-server-a2445888e803bb62322aa83c1be239cbf0a8227c.tar.gz nextcloud-server-a2445888e803bb62322aa83c1be239cbf0a8227c.zip |
Show advanced section on error. Fixes #5191
Diffstat (limited to 'core/templates/installation.php')
-rw-r--r-- | core/templates/installation.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/templates/installation.php b/core/templates/installation.php index 5a103762269..a6f55cb0e28 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -61,13 +61,13 @@ </p> </fieldset> - <?php if(!$_['directoryIsSet'] OR !$_['dbIsSet']): ?> + <?php if(!$_['directoryIsSet'] OR !$_['dbIsSet'] OR count($_['errors']) > 0): ?> <fieldset id="advancedHeader"> <legend><a id="showAdvanced"><?php p($l->t( 'Advanced' )); ?> <img class="svg" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" /></a></legend> </fieldset> <?php endif; ?> - <?php if(!$_['directoryIsSet']): ?> + <?php if(!$_['directoryIsSet'] OR count($_['errors']) > 0): ?> <fieldset id="datadirField"> <div id="datadirContent"> <label for="directory"><?php p($l->t( 'Data folder' )); ?></label> @@ -78,7 +78,7 @@ </fieldset> <?php endif; ?> - <?php if(!$_['dbIsSet']): ?> + <?php if(!$_['dbIsSet'] OR count($_['errors']) > 0): ?> <fieldset id='databaseField'> <?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle'] or $_['hasMSSQL']) $hasOtherDB = true; else $hasOtherDB =false; //other than SQLite ?> |