@@ -17,8 +17,11 @@ discard block |
||
| 17 | 17 | <?php if(is_array($err)):?> |
| 18 | 18 | <?php p($err['error']); ?> |
| 19 | 19 | <span class='hint'><?php p($err['hint']); ?></span> |
| 20 | - <?php else: ?> |
|
| 21 | - <?php p($err); ?> |
|
| 20 | + <?php else { |
|
| 21 | + : ?> |
|
| 22 | + <?php p($err); |
|
| 23 | +} |
|
| 24 | +?> |
|
| 22 | 25 | <?php endif; ?> |
| 23 | 26 | </p> |
| 24 | 27 | <?php endforeach; ?> |
@@ -74,8 +77,12 @@ discard block |
||
| 74 | 77 | |
| 75 | 78 | <?php if(!$_['dbIsSet'] OR count($_['errors']) > 0): ?> |
| 76 | 79 | <fieldset id='databaseBackend'> |
| 77 | - <?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle']) |
|
| 78 | - $hasOtherDB = true; else $hasOtherDB =false; //other than SQLite ?> |
|
| 80 | + <?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle']) { |
|
| 81 | + $hasOtherDB = true; |
|
| 82 | +} else { |
|
| 83 | + $hasOtherDB =false; |
|
| 84 | + } |
|
| 85 | + //other than SQLite ?> |
|
| 79 | 86 | <legend><?php p($l->t( 'Configure the database' )); ?></legend> |
| 80 | 87 | <div id="selectDbType"> |
| 81 | 88 | <?php foreach($_['databases'] as $type => $label): ?> |
@@ -87,11 +94,14 @@ discard block |
||
| 87 | 94 | <?php p($l->t( 'For more details check out the documentation.' )); ?> ↗</a> |
| 88 | 95 | </p> |
| 89 | 96 | <input type="hidden" id="dbtype" name="dbtype" value="<?php p($type) ?>"> |
| 90 | - <?php else: ?> |
|
| 97 | + <?php else { |
|
| 98 | + : ?> |
|
| 91 | 99 | <input type="radio" name="dbtype" value="<?php p($type) ?>" id="<?php p($type) ?>" |
| 92 | 100 | <?php print_unescaped($_['dbtype'] === $type ? 'checked="checked" ' : '') ?>/> |
| 93 | 101 | <label class="<?php p($type) ?>" for="<?php p($type) ?>"><?php p($label) ?></label> |
| 94 | - <?php endif; ?> |
|
| 102 | + <?php endif; |
|
| 103 | +} |
|
| 104 | +?> |
|
| 95 | 105 | <?php endforeach; ?> |
| 96 | 106 | </div> |
| 97 | 107 | </fieldset> |