Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
No tags cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoslado committed Jun 21, 2017
1 parent 4a2db2a commit 1050303
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
Binary file modified dist/doofinder-p1.5-latest-no-full.zip
Binary file not shown.
Binary file modified dist/doofinder-p1.5-latest.zip
Binary file not shown.
13 changes: 3 additions & 10 deletions doofinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Doofinder extends Module

const GS_SHORT_DESCRIPTION = 1;
const GS_LONG_DESCRIPTION = 2;
const VERSION = "2.2.6";
const VERSION = "2.2.7";
const YES = 1;
const NO = 0;

Expand Down Expand Up @@ -286,15 +286,8 @@ protected function _updateConfiguration()
foreach (Language::getLanguages(true, $this->context->shop->id) as $lang)
{
$optname = $prefix.strtoupper($lang['iso_code']);
// Cleaning script tags
if ('DOOFINDER_SCRIPT_' === $prefix){
$value = str_replace('<script type="text/javascript">', '', Tools::getValue($optname));
$value = str_replace("<script type='text/javascript'>", '', Tools::getValue($optname));
$value = str_replace('</script>', '', $value);
}
else{
$value = Tools::getValue($optname);
}
$value = Tools::getValue($optname);

Configuration::updateValue($optname, $value, $html);
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doofinder-for-prestashop",
"version": "2.2.6",
"version": "2.2.7",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-clean": "^0.5.0",
Expand Down

0 comments on commit 1050303

Please sign in to comment.