mirror of https://github.com/BOINC/boinc.git
Web: rename recaptcha_get_html() because of a conflict with Drupal
When also including an older recaptchalib.php this function gets redefined. Since it is only a wrapper function and only used within BOINC, renaming it is safe.
This commit is contained in:
parent
2495f76bc6
commit
72bec2388a
|
@ -78,7 +78,7 @@ function create_account_form($teamid, $next_url) {
|
|||
if ($publickey) {
|
||||
row2(
|
||||
"",
|
||||
recaptcha_get_html($publickey)
|
||||
boinc_recaptcha_get_html($publickey)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -1002,7 +1002,7 @@ function recaptcha_get_head_extra() {
|
|||
}
|
||||
}
|
||||
|
||||
function recaptcha_get_html($publickey) {
|
||||
function boinc_recaptcha_get_html($publickey) {
|
||||
if ($publickey) {
|
||||
return '<div class="g-recaptcha" data-sitekey="' . $publickey . '"></div>';
|
||||
} else {
|
||||
|
|
|
@ -107,7 +107,7 @@ function show_submit() {
|
|||
$config = get_config();
|
||||
$publickey = parse_config($config, "<recaptcha_public_key>");
|
||||
if ($publickey) {
|
||||
table_row(recaptcha_get_html($publickey));
|
||||
table_row(boinc_recaptcha_get_html($publickey));
|
||||
}
|
||||
table_row("<p><input class=\"btn btn-primary\" type=\"submit\" value=\"".tra("Create/edit profile") ."\" name=\"submit\">");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue