Skip to content

Commit

Permalink
fix translation + upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
Hervé Hennes committed Apr 23, 2019
1 parent 7d3dcb5 commit 3966ef1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eicaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public function hookActionBeforeSubmitAccount($params)
Tools::getRemoteAddr()
);
if (!$result->isSuccess()) {
$this->context->controller->errors[] = Tools::displayError('incorrect response to CAPTCHA challenge. Please try again.');
$this->context->controller->errors[] = $this->l('incorrect response to CAPTCHA challenge. Please try again.');
}
}
}
Expand Down
39 changes: 39 additions & 0 deletions upgrade/install-0.4.16.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php
/**
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author Hennes Hervé <contact@h-hennes.fr>
* @copyright 2013-2019 Hennes Hervé
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* http://www.h-hennes.fr/blog/
*/

if (!defined('_PS_VERSION_')) {
exit;
}

/**
* Install new hook to check captcha on customer account
* @param Module $module
* @return bool
*/
function upgrade_module_0_4_16($module)
{
return $module->registerHook('actionBeforeSubmitAccount');
}

0 comments on commit 3966ef1

Please sign in to comment.