Commit a27cffc1 authored by Rom Walton's avatar Rom Walton
Browse files

Merge pull request #1406 from BOINC/rename_recaptcha

Web: rename recaptcha_get_html() because of a conflict with Drupal
parents 80f5187e 72bec238
...@@ -78,7 +78,7 @@ function create_account_form($teamid, $next_url) { ...@@ -78,7 +78,7 @@ function create_account_form($teamid, $next_url) {
if ($publickey) { if ($publickey) {
row2( row2(
"", "",
recaptcha_get_html($publickey) boinc_recaptcha_get_html($publickey)
); );
} }
......
...@@ -1002,7 +1002,7 @@ function recaptcha_get_head_extra() { ...@@ -1002,7 +1002,7 @@ function recaptcha_get_head_extra() {
} }
} }
function recaptcha_get_html($publickey) { function boinc_recaptcha_get_html($publickey) {
if ($publickey) { if ($publickey) {
return '<div class="g-recaptcha" data-sitekey="' . $publickey . '"></div>'; return '<div class="g-recaptcha" data-sitekey="' . $publickey . '"></div>';
} else { } else {
......
...@@ -107,7 +107,7 @@ function show_submit() { ...@@ -107,7 +107,7 @@ function show_submit() {
$config = get_config(); $config = get_config();
$publickey = parse_config($config, "<recaptcha_public_key>"); $publickey = parse_config($config, "<recaptcha_public_key>");
if ($publickey) { 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\">"); table_row("<p><input class=\"btn btn-primary\" type=\"submit\" value=\"".tra("Create/edit profile") ."\" name=\"submit\">");
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment