summaryrefslogtreecommitdiff
path: root/modules/recaptcha/libraries
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-06-02 22:55:23 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-06-02 22:55:23 -0600
commit1df6db45dc569cc6f18a9d1622fce5ebe62f8d30 (patch)
treee4e8cac619bc2443c3e26d0f87a25c51f8a3b273 /modules/recaptcha/libraries
parent2bd8051c28621f6c25a3f85b73da2f94d62440f2 (diff)
parentdde5fb96ee9db5a67b286ea4ac4f35190453a6ef (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/recaptcha/libraries')
-rw-r--r--modules/recaptcha/libraries/Form_Recaptcha.php17
1 files changed, 3 insertions, 14 deletions
diff --git a/modules/recaptcha/libraries/Form_Recaptcha.php b/modules/recaptcha/libraries/Form_Recaptcha.php
index d804fd78..4c0c4997 100644
--- a/modules/recaptcha/libraries/Form_Recaptcha.php
+++ b/modules/recaptcha/libraries/Form_Recaptcha.php
@@ -39,20 +39,9 @@ class Form_Recaptcha_Core extends Form_Input {
"http://recaptcha.net/api/getkey</a>");
}
- $server = "http://api.recaptcha.net";
-
- $options[] = "callback: Recaptcha.focus_response_field";
- $options[] = "lang: \"" . Kohana::config("locale.root_locale") . "\"";
- $options[] = "theme: \"white\"";
- $options = implode(", ", $options);
-
- $html = "<div id=\"gRecaptcha\" />";
- $html .= "<script type=\"text/javascript\" ";
- $html .= "src=\"http://api.recaptcha.net/js/recaptcha_ajax.js\"></script>";
- $html .= "<script type=\"text/javascript\">";
- $html .= "Recaptcha.create(\"$public_key\", \"gRecaptcha\", {" . $options . "});";
- $html .= "</script>";
- return $html;
+ $view = new View("form_recaptcha.html");
+ $view->public_key = $public_key;
+ return $view;
}
/**