// Blocklayered: BO message used "echo", replaced by a return.
// Blocklayered: Bug when show_limit = 0 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10785 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
5c61feb04b
commit
a42ab201f0
2 files changed
+4
-4
No files matched your search
@@ -1211,9 +1211,9 @@ class BlockLayered extends Module
|
|||||||
|
|
||||||
Db::getInstance()->AutoExecute(_DB_PREFIX_.'layered_filter', $valuesToInsert, 'INSERT');
|
Db::getInstance()->AutoExecute(_DB_PREFIX_.'layered_filter', $valuesToInsert, 'INSERT');
|
||||||
|
|
||||||
echo '<div class="conf">'.(version_compare(_PS_VERSION_,'1.5','>') ? '' : '<img src="../img/admin/ok2.png" alt="" />').
|
$html .= '<div class="conf">'.(version_compare(_PS_VERSION_,'1.5','>') ? '' : '<img src="../img/admin/ok2.png" alt="" />').
|
||||||
$this->l('Your filter').' "'.Tools::safeOutput(Tools::getValue('layered_tpl_name')).'" '.
|
$this->l('Your filter').' "'.Tools::safeOutput(Tools::getValue('layered_tpl_name')).'" '.
|
||||||
((isset($_POST['id_layered_filter']) && $_POST['id_layered_filter']) ? $this->l('was updated successfully.') : $this->l('was added successfully.')).'</div>';
|
((isset($_POST['id_layered_filter']) && $_POST['id_layered_filter']) ? $this->l('was updated successfully.') : $this->l('was added successfully.')).'</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ param_product_url = '#{$param_product_url}';
|
|||||||
</script>
|
</script>
|
||||||
{/if}
|
{/if}
|
||||||
</ul>
|
</ul>
|
||||||
{if count($filter.values) > $filter.filter_show_limit && $filter.filter_type != 2}
|
{if count($filter.values) > $filter.filter_show_limit && $filter.filter_show_limit > 0 && $filter.filter_type != 2}
|
||||||
<span class="hide-action more">{l s='Show more' mod='blocklayered'}</span>
|
<span class="hide-action more">{l s='Show more' mod='blocklayered'}</span>
|
||||||
<span class="hide-action less">{l s='Show less' mod='blocklayered'}</span>
|
<span class="hide-action less">{l s='Show less' mod='blocklayered'}</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in new issue
Block a user