Version Notes
Added translate feature to module.
Download this release
Release Info
Developer | Magento Core Team |
Extension | productreviewcaptcha |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.2.0
app/code/community/OlegKoval/ProductReviewCaptcha/controllers/ProductController.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* @author Oleg Koval <oleh.koval@gmail.com>
|
9 |
*/
|
10 |
//include controller to override it
|
11 |
-
require_once
|
12 |
|
13 |
class OlegKoval_ProductReviewCaptcha_ProductController extends Mage_Review_ProductController {
|
14 |
const XML_PATH_PRC_ENABLED = 'catalog/review/prc_enabled';
|
@@ -43,7 +43,7 @@ class OlegKoval_ProductReviewCaptcha_ProductController extends Mage_Review_Produ
|
|
43 |
|
44 |
|
45 |
if (!$captcha->is_valid) {
|
46 |
-
throw new Exception("The reCAPTCHA wasn't entered correctly.", 1);
|
47 |
}
|
48 |
}
|
49 |
else {
|
8 |
* @author Oleg Koval <oleh.koval@gmail.com>
|
9 |
*/
|
10 |
//include controller to override it
|
11 |
+
require_once 'Mage/Review/controllers/ProductController.php';
|
12 |
|
13 |
class OlegKoval_ProductReviewCaptcha_ProductController extends Mage_Review_ProductController {
|
14 |
const XML_PATH_PRC_ENABLED = 'catalog/review/prc_enabled';
|
43 |
|
44 |
|
45 |
if (!$captcha->is_valid) {
|
46 |
+
throw new Exception($this->__("The reCAPTCHA wasn't entered correctly."), 1);
|
47 |
}
|
48 |
}
|
49 |
else {
|
app/code/community/OlegKoval/ProductReviewCaptcha/etc/config.xml
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
<config>
|
13 |
<modules>
|
14 |
<OlegKoval_ProductReviewCaptcha>
|
15 |
-
<version>1.
|
16 |
<depends>
|
17 |
<Mage_Contacts/>
|
18 |
</depends>
|
@@ -51,5 +51,14 @@
|
|
51 |
</args>
|
52 |
</review>
|
53 |
</routers>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
</frontend>
|
55 |
</config>
|
12 |
<config>
|
13 |
<modules>
|
14 |
<OlegKoval_ProductReviewCaptcha>
|
15 |
+
<version>1.2.0</version>
|
16 |
<depends>
|
17 |
<Mage_Contacts/>
|
18 |
</depends>
|
51 |
</args>
|
52 |
</review>
|
53 |
</routers>
|
54 |
+
<translate>
|
55 |
+
<modules>
|
56 |
+
<OlegKoval_ProductReviewCaptcha>
|
57 |
+
<files>
|
58 |
+
<default>OlegKoval_ProductReviewCaptcha.csv</default>
|
59 |
+
</files>
|
60 |
+
</OlegKoval_ProductReviewCaptcha>
|
61 |
+
</modules>
|
62 |
+
</translate>
|
63 |
</frontend>
|
64 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>productreviewcaptcha</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,11 +10,11 @@
|
|
10 |
<description>"Product Review Captcha" extension add in easy way the captcha to "Product Reviews" form and will protect this form from unwanted spambots.
|
11 |

|
12 |
This extension uses reCaptcha library (http://www.google.com/recaptcha).</p></description>
|
13 |
-
<notes>
|
14 |
<authors><author><name>Oleg Koval</name><user>auto-converted</user><email>oleh.koval@gmail.com</email></author></authors>
|
15 |
-
<date>
|
16 |
-
<time>
|
17 |
-
<contents><target name="magecommunity"><dir name="OlegKoval"><dir name="ProductReviewCaptcha"><dir name="Block"><file name="Form.php" hash="c180eb7b2cea394d2290b2436f313bbb"/></dir><dir name="Helper"><file name="recaptchalib.php" hash="b206569ed973563107c29902ca7ab35b"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Lang.php" hash="2378589b507b2c57c04831cf6ac544b0"/><file name="Theme.php" hash="be96ab4e09cd14b48a033c467ae74901"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="ProductController.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>productreviewcaptcha</name>
|
4 |
+
<version>1.2.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
10 |
<description>"Product Review Captcha" extension add in easy way the captcha to "Product Reviews" form and will protect this form from unwanted spambots.
|
11 |

|
12 |
This extension uses reCaptcha library (http://www.google.com/recaptcha).</p></description>
|
13 |
+
<notes>Added translate feature to module.</notes>
|
14 |
<authors><author><name>Oleg Koval</name><user>auto-converted</user><email>oleh.koval@gmail.com</email></author></authors>
|
15 |
+
<date>2013-02-14</date>
|
16 |
+
<time>09:22:42</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="OlegKoval"><dir name="ProductReviewCaptcha"><dir name="Block"><file name="Form.php" hash="c180eb7b2cea394d2290b2436f313bbb"/></dir><dir name="Helper"><file name="recaptchalib.php" hash="b206569ed973563107c29902ca7ab35b"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Lang.php" hash="2378589b507b2c57c04831cf6ac544b0"/><file name="Theme.php" hash="be96ab4e09cd14b48a033c467ae74901"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="ProductController.php" hash="560236e12a38cbbe7d07597413043e8d"/></dir><dir name="etc"><file name="config.xml" hash="ceffabdfa6567675c56028031051f5d8"/><file name="system.xml" hash="df300a3aa36c9e80c7c13a46892e517d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OlegKoval_ProductReviewCaptcha.xml" hash="f83ed30bb9b3b3fbecd4099cf23fa162"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="productreviewcaptcha"><file name="form.phtml" hash="fa0f697bd7efe03446385e78de9f7ca9"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="OlegKoval_ProductReviewCaptcha.csv" hash="3e503ab7756be41684d848deaea746b4"/></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|