From a5e56accac7b025c22da5e6430f7e6cb7bad3573 Mon Sep 17 00:00:00 2001
From: sun <sun@unleashedmind.com>
Date: Tue, 29 May 2012 06:15:35 +0200
Subject: [PATCH] Revert "- #1493118 by sun: Fixed Invalid CAPTCHA URL when
 testing mode is enabled."

This reverts commit 3abedd24d28f94bf66486890e689ba257f398f05.
---
 mollom.drupal.inc |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/mollom.drupal.inc b/mollom.drupal.inc
index 8f2b2f5..c70ebb3 100644
--- a/mollom.drupal.inc
+++ b/mollom.drupal.inc
@@ -318,22 +318,6 @@ class MollomDrupalTest extends MollomDrupal {
     $this->saveConfiguration('publicKey', $this->publicKey);
     $this->saveConfiguration('privateKey', $this->privateKey);
   }
-
-  /**
-   * Overrides Mollom::createCaptcha().
-   *
-   * Temporary fix to show proper image CAPTCHAs when testing mode is enabled.
-   *
-   * @todo Remove after REST Testing API has been fixed.
-   */
-  public function createCaptcha(array $data = array()) {
-    $result = parent::createCaptcha($data);
-    if (isset($data['type']) && $data['type'] === 'image' && isset($result['url']) && strpos($result['url'], 'url-to-a-captcha') !== FALSE) {
-      $protocol = (!empty($data['ssl']) ? 'https' : 'http');
-      $result['url'] = $protocol . '://rest.mollom.com/' . self::API_VERSION . '/captcha/image/test.png';
-    }
-    return $result;
-  }
 }
 
 /**
-- 
1.7.6.msysgit.0

