]> source.dussan.org Git - nextcloud-server.git/commitdiff
Show advanced section on error. Fixes #5191
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Fri, 11 Oct 2013 11:47:28 +0000 (14:47 +0300)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Fri, 11 Oct 2013 11:48:31 +0000 (14:48 +0300)
core/templates/installation.php

index 5a103762269ffbb4a79987caf49cec5f0bbf6689..a6f55cb0e288ec173a7f40bb11f75d3fbe85d407 100644 (file)
                </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 ?>