Skip to content

Commit

Permalink
Remove superfluous configuration from RecaptchaComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
rintaun committed Mar 15, 2012
1 parent ee05eda commit 209071b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Controller/Component/RecaptchaComponent.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
<?php
class RecaptchaComponent extends Component {
public $publicKey;
public $privateKey;

public $model;

protected $controller;

public function startup(Controller $controller) {
$this->controller = $controller;

Configure::load('Recaptcha.key');
if (empty($this->publicKey)) {
$this->publicKey = Configure::read('Recaptcha.Public');
}
if (empty($this->privateKey)) {
$this->privateKey = Configure::read('Recaptcha.Private');
}
if (empty($this->model)) {
$this->model = $controller->modelClass;
}
Expand Down

0 comments on commit 209071b

Please sign in to comment.