From 9e0fd72ee48bcfcbd9291703fd9f06ace806e300 Mon Sep 17 00:00:00 2001 From: Shawn Kwang Date: Wed, 27 Jun 2018 13:51:38 -0500 Subject: [PATCH] web rpc: Added global scope to master_url variable. --- html/inc/util.inc | 1 + html/user/get_project_config.php | 1 + 2 files changed, 2 insertions(+) diff --git a/html/inc/util.inc b/html/inc/util.inc index 07c14960d1..5b4e1f68d1 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -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 , ""); $recaptcha_public_key = parse_config($config, ""); $recaptcha_private_key = parse_config($config, ""); diff --git a/html/user/get_project_config.php b/html/user/get_project_config.php index 19e6808df0..91e2e27071 100644 --- a/html/user/get_project_config.php +++ b/html/user/get_project_config.php @@ -48,6 +48,7 @@ function show_platforms() { } $config = get_config(); +global $master_url; $long_name = parse_config($config, ""); $min_passwd_length = parse_config($config, "");