Merge pull request #2580 from drshawnkwang/sak-fix-getprojectconfig

web rpc: Added global scope to master_url variable.
This commit is contained in:
Kevin Reed 2018-06-29 15:49:19 -05:00 committed by GitHub
commit 23e737ebfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ require_once("../inc/bootstrap.inc");
// parse some stuff from config (do it here for efficiency)
//
$config = get_config();
global $master_url;
$master_url = parse_config($config , "<master_url>");
$recaptcha_public_key = parse_config($config, "<recaptcha_public_key>");
$recaptcha_private_key = parse_config($config, "<recaptcha_private_key>");

View File

@ -48,6 +48,7 @@ function show_platforms() {
}
$config = get_config();
global $master_url;
$long_name = parse_config($config, "<long_name>");
$min_passwd_length = parse_config($config, "<min_passwd_length>");