Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorJo Michael <me@mynetx.net>2012-04-29 04:36:12 +0400
committerJo Michael <me@mynetx.net>2012-04-29 04:36:12 +0400
commit7c1411d3e0bb62724cfc4d660571ace22d4aeefd (patch)
tree62503fe97ca13b1445f6153fa61c42a5e5bc206e /setup
parentfd6a96264a846996b862d7005019c7831e6ca30e (diff)
Fix checkstyle InlineControlStructure warnings
Diffstat (limited to 'setup')
-rw-r--r--setup/frames/config.inc.php5
-rw-r--r--setup/frames/index.inc.php15
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') ?>" />
&nbsp; &nbsp;
- <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"';
+ } ?> />
&nbsp; &nbsp;
<input type="submit" name="submit_clear" value="<?php echo __('Clear') ?>" class="red" />
</td>