mirror of https://github.com/BOINC/boinc.git
Merge pull request #2580 from drshawnkwang/sak-fix-getprojectconfig
web rpc: Added global scope to master_url variable.
This commit is contained in:
commit
23e737ebfe
|
@ -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>");
|
||||
|
|
|
@ -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>");
|
||||
|
|
Loading…
Reference in New Issue