summaryrefslogtreecommitdiffstats
path: root/templates/show_install_config.inc.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-02-03 04:54:37 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-02-03 04:55:51 -0500
commitc8cd1da88fbf0df1a99463032d97ac42d221a774 (patch)
tree9ee74797bf0f7b90f96ccbfd2f8b8829cbc49fd0 /templates/show_install_config.inc.php
parent10d54c9f7fd0b15b64a0474c6f33b63caabc4d03 (diff)
downloadampache-c8cd1da88fbf0df1a99463032d97ac42d221a774.tar.gz
ampache-c8cd1da88fbf0df1a99463032d97ac42d221a774.tar.bz2
ampache-c8cd1da88fbf0df1a99463032d97ac42d221a774.zip
Fix the debug_result convenience function
The point of a convenience function is to be convenient, not to have an unused first parameter and always be surrounded by the same boilerplate.
Diffstat (limited to 'templates/show_install_config.inc.php')
-rw-r--r--templates/show_install_config.inc.php22
1 files changed, 4 insertions, 18 deletions
diff --git a/templates/show_install_config.inc.php b/templates/show_install_config.inc.php
index bae4d3ba..9ec17b1f 100644
--- a/templates/show_install_config.inc.php
+++ b/templates/show_install_config.inc.php
@@ -72,33 +72,19 @@ require $prefix . '/templates/install_header.inc.php';
<table>
<tr>
<td class="align"><?php echo T_('ampache.cfg.php exists?'); ?></td>
- <td>[
- <?php
- if (!is_readable($configfile)) {
- echo debug_result('',false);
- }
- else {
- echo debug_result('',true);
- }
- ?>
- ]
+ <td>
+ <?php echo debug_result(is_readable($configfile)); ?>
</td>
</tr>
<tr>
<td class="align">
<?php echo T_('ampache.cfg.php configured?'); ?>
</td>
- <td>[
+ <td>
<?php
$results = @parse_ini_file($configfile);
- if (!check_config_values($results)) {
- echo debug_result('',false);
- }
- else {
- echo debug_result('',true);
- }
+ echo debug_result(check_config_values($results));
?>
- ]
</td>
</tr>
<tr>