diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-05 04:43:13 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-05 04:43:13 +0000 |
commit | ca34aa1edeb011baed4e2a6fabe56d90c0ba314d (patch) | |
tree | 19ef4bdd32a97f1effc6e50d2e06dba74fb398ba /lib/debug.lib.php | |
parent | afe3b2fcb0183426c34620dfe2d68ed41f84d1d9 (diff) | |
download | ampache-ca34aa1edeb011baed4e2a6fabe56d90c0ba314d.tar.gz ampache-ca34aa1edeb011baed4e2a6fabe56d90c0ba314d.tar.bz2 ampache-ca34aa1edeb011baed4e2a6fabe56d90c0ba314d.zip |
* Prevent Album art set on demo because people put porn in there :(
* Fix Push functionality for the Democratic view stuff
* Add footer div definition per Apex's request
* Fix Config display with multi-value elements
* Added plugin checking to update.php wq
Diffstat (limited to 'lib/debug.lib.php')
-rw-r--r-- | lib/debug.lib.php | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/lib/debug.lib.php b/lib/debug.lib.php index 04e77887..cccfd8e6 100644 --- a/lib/debug.lib.php +++ b/lib/debug.lib.php @@ -225,22 +225,6 @@ function check_config_values($conf) { } // check_config_values /*! - @function show_compare_config - @discussion shows the difference between ampache.cfg - and ampache.cfg.dst -*/ -function show_compare_config($prefix) { - - // Live Config File - $live_config = $prefix . "/config/ampache.cfg.php"; - - // Generic Config File - $generic_config = $prefix . "/config/ampache.cfg.dist"; - -} // show_compare_config - - -/*! @function debug_read_config @discussion this is the same as the read config function except it will pull config values with a # before them @@ -328,8 +312,16 @@ function debug_compare_configs($config,$dist_config) { foreach ($dist_results as $key=>$value) { if (!isset($results[$key])) { - $missing[$key] = $value; - } + /* If it's an array we need to split it out */ + if (is_array($value)) { + foreach ($value as $element) { + $missing[$key][] = $element; + } + } + else { + $missing[$key] = $value; + } // end else not array + } // if it's not set } // end foreach conf |