// Blocklayered: BO message used "echo", replaced by a return.

// Blocklayered: Bug when show_limit = 0
This commit is contained in:
mDeflotte
2011-11-30 08:33:37 +00:00
parent 6ef867bd5a
commit 7e2f2c4602
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1211,9 +1211,9 @@ class BlockLayered extends Module
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="" />').
$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>';
$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')).'" '.
((isset($_POST['id_layered_filter']) && $_POST['id_layered_filter']) ? $this->l('was updated successfully.') : $this->l('was added successfully.')).'</div>';
}
}
}
+1 -1
View File
@@ -156,7 +156,7 @@ param_product_url = '#{$param_product_url}';
</script>
{/if}
</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 less">{l s='Show less' mod='blocklayered'}</span>
{/if}