diff options
author | Jo Michael <me@mynetx.net> | 2012-04-29 04:36:12 +0400 |
---|---|---|
committer | Jo Michael <me@mynetx.net> | 2012-04-29 04:36:12 +0400 |
commit | 7c1411d3e0bb62724cfc4d660571ace22d4aeefd (patch) | |
tree | 62503fe97ca13b1445f6153fa61c42a5e5bc206e /setup | |
parent | fd6a96264a846996b862d7005019c7831e6ca30e (diff) |
Fix checkstyle InlineControlStructure warnings
Diffstat (limited to 'setup')
-rw-r--r-- | setup/frames/config.inc.php | 5 | ||||
-rw-r--r-- | setup/frames/index.inc.php | 15 |
2 files changed, 16 insertions, 4 deletions
diff --git a/setup/frames/config.inc.php b/setup/frames/config.inc.php index ce7389d8d4..145e4b7ba9 100644 --- a/setup/frames/config.inc.php +++ b/setup/frames/config.inc.php @@ -36,7 +36,10 @@ check_config_rw($config_readable, $config_writable, $config_exists); <tr> <td class="lastrow" style="text-align: left"> <input type="submit" name="submit_download" value="<?php echo __('Download') ?>" class="green" /> - <input type="submit" name="submit_save" value="<?php echo __('Save') ?>"<?php if (!$config_writable) echo ' disabled="disabled"' ?> /> + <input type="submit" name="submit_save" value="<?php echo __('Save') ?>"<?php + if (!$config_writable) { + echo ' disabled="disabled"'; + } ?> /> </td> </tr> <?php diff --git a/setup/frames/index.inc.php b/setup/frames/index.inc.php index d4bb3dde75..71c2f9dec0 100644 --- a/setup/frames/index.inc.php +++ b/setup/frames/index.inc.php @@ -240,9 +240,18 @@ display_input( <input type="submit" name="submit_display" value="<?php echo __('Display') ?>" /> <input type="submit" name="submit_download" value="<?php echo __('Download') ?>" /> - <input type="submit" name="submit_save" value="<?php echo __('Save') ?>"<?php if (!$config_writable) echo ' disabled="disabled"' ?> /> - <input type="submit" name="submit_load" value="<?php echo __('Load') ?>"<?php if (!$config_exists) echo ' disabled="disabled"' ?> /> - <input type="submit" name="submit_delete" value="<?php echo __('Delete') ?>"<?php if (!$config_exists || !$config_writable) echo ' disabled="disabled"' ?> /> + <input type="submit" name="submit_save" value="<?php echo __('Save') ?>"<?php + if (!$config_writable) { + echo ' disabled="disabled"'; + } ?> /> + <input type="submit" name="submit_load" value="<?php echo __('Load') ?>"<?php + if (!$config_exists) { + echo ' disabled="disabled"'; + } ?> /> + <input type="submit" name="submit_delete" value="<?php echo __('Delete') ?>"<?php + if (!$config_exists || !$config_writable) { + echo ' disabled="disabled"'; + } ?> /> <input type="submit" name="submit_clear" value="<?php echo __('Clear') ?>" class="red" /> </td> |