mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
Fix for bug 397 and 498 thanks pb1dft
This commit is contained in:
parent
5ca15d0423
commit
5204485094
6 changed files with 53 additions and 27 deletions
|
@ -34,6 +34,8 @@
|
|||
file is readable, overkill I know..
|
||||
@param level 0 is readable, 1 detailed info
|
||||
*/
|
||||
|
||||
|
||||
function read_config_file($file,$level=0) {
|
||||
|
||||
$fp = @fopen($file, 'r');
|
||||
|
@ -186,7 +188,7 @@ function check_php_pcre() {
|
|||
least set the needed variables
|
||||
*/
|
||||
function check_config_values($conf) {
|
||||
|
||||
$error = new Error();
|
||||
if (!$conf['local_host']) {
|
||||
return false;
|
||||
}
|
||||
|
@ -211,7 +213,13 @@ function check_config_values($conf) {
|
|||
if (!isset($conf['sess_cookiesecure'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isset($conf['debug'])) {
|
||||
if (!isset($conf['log_path'])) {
|
||||
$error->add_error('log_path',_("You defined the option \"debug = on\" but didn't define a log path for the log to be stored"));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
} // check_config_values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue