Skip to content

Commit

Permalink
refs #1067 : modify - reCAPTCHA config load from context
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Jul 4, 2015
1 parent 3772d45 commit 51c91fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/reCAPTCHA/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ function recaptcha_init() {
}

function Recaptcha_Footer($target) {
global $configVal, $pluginURL;
$config = Setting::fetchConfigVal($configVal);
$context = Model_Context::getInstance();
$config = $context->getProperty('plugin.config');
if (!is_null($config) && isset($config['siteKey'])) {
$target .= <<<EOS
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion plugins/reCAPTCHA/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<safety changeData="no" exposeData="no" accessLocal="no" accessRemote="yes" accessRaw="no" />
<requirements>
<textcube>
<minVersion>1.10.1</minVersion>
<minVersion>2.0</minVersion>
</textcube>
</requirements>
<binding>
Expand Down

0 comments on commit 51c91fe

Please sign in to comment.