From 3e41719ea3b951d8b79c6e77abca4268384d9a21 Mon Sep 17 00:00:00 2001 From: sLorenzini Date: Wed, 3 Apr 2013 16:18:37 +0200 Subject: [PATCH 1/9] [-] FO: fixed bug Solved a problem with JSON.stringify problem with IE8 - #PSCFV-8340 --- modules/sendtoafriend/sendtoafriend-extra.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sendtoafriend/sendtoafriend-extra.tpl b/modules/sendtoafriend/sendtoafriend-extra.tpl index cd2f84f35..f7439b9cd 100644 --- a/modules/sendtoafriend/sendtoafriend-extra.tpl +++ b/modules/sendtoafriend/sendtoafriend-extra.tpl @@ -45,7 +45,7 @@ $('document').ready(function(){ {/literal}url: "{$module_dir}sendtoafriend_ajax.php",{literal} type: "POST", headers: {"cache-control": "no-cache"}, - data: {action: 'sendToMyFriend', secure_key: '{/literal}{$stf_secure_key}{literal}', friend: JSON.stringify(datas)},{/literal}{literal} + data: {action: 'sendToMyFriend', secure_key: '{/literal}{$stf_secure_key}{literal}', friend: unescape(JSON.stringify(datas).replace(/u/g, '%u'))},{/literal}{literal} dataType: "json", success: function(result){ $.fancybox.close(); From 9a881d4b58ec6c437eb3c592d26f5121f6900121 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Wed, 3 Apr 2013 19:07:48 +0200 Subject: [PATCH 2/9] [-] FO : Fix bug #PSCFV-8286, displayImage bad selector called --- themes/default/js/product.js | 2 +- themes/default/product.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/default/js/product.js b/themes/default/js/product.js index f80461748..7e2ae97a3 100644 --- a/themes/default/js/product.js +++ b/themes/default/js/product.js @@ -118,7 +118,7 @@ function findCombination(firstTime) //show the large image in relation to the selected combination if (combinations[combination]['image'] && combinations[combination]['image'] != -1) - displayImage( $('#thumb_' + combinations[combination]['image']).parent() ); + displayImage($('.thumb_' + combinations[combination]['image']).parent()); //show discounts values according to the selected combination if (combinations[combination]['idCombination'] && combinations[combination]['idCombination'] > 0) diff --git a/themes/default/product.tpl b/themes/default/product.tpl index 6089dbe4c..b90d51a88 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -281,7 +281,7 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count}
- + {assign var="groupName" value="group_$id_attribute_group"}
{if ($group.group_type == 'select')} From 976dcaf582bcfff9f02e3e90db836fce1d5b6c30 Mon Sep 17 00:00:00 2001 From: sLorenzini Date: Thu, 4 Apr 2013 09:44:59 +0200 Subject: [PATCH 3/9] [-] FO: fixed bug Cart Summery Borders - #PSCFV-8421 --- themes/default/css/global.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/default/css/global.css b/themes/default/css/global.css index 65080eac9..a85048f2e 100644 --- a/themes/default/css/global.css +++ b/themes/default/css/global.css @@ -261,6 +261,7 @@ table.table_block { border:1px solid #999; border-bottom:none; background:white; + border-collapse:inherit } table.std th, table.table_block th { @@ -804,6 +805,7 @@ table#cart_summary .cart_total_price td.cart_voucher { table#cart_summary #total_price_container { border-bottom:1px solid #999; + border-right: none; } .cart_voucher .title_block, .cart_voucher h4 From 01b088370cfa163135a5481c49fe8663d6042354 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 4 Apr 2013 12:20:14 +0200 Subject: [PATCH 4/9] [-] FO : Fix bug #PSCFV-7743 and #PSCFV-8286, bigpic source change --- controllers/front/ProductController.php | 59 ++++++++++++++++++++----- themes/default/js/product.js | 50 ++++++++++++--------- themes/default/product.tpl | 17 +++---- 3 files changed, 86 insertions(+), 40 deletions(-) diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index 202801041..989c59ee3 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -340,26 +340,39 @@ class ProductControllerCore extends FrontController { $images = $this->product->getImages((int)$this->context->cookie->id_lang); $product_images = array(); + + if(isset($images[0])) + $this->context->smarty->assign('mainImage', $images[0]); foreach ($images as $k => $image) { if ($image['cover']) { - $this->context->smarty->assign('mainImage', $images[0]); + $this->context->smarty->assign('mainImage', $image); $cover = $image; $cover['id_image'] = (Configuration::get('PS_LEGACY_IMAGES') ? ($this->product->id.'-'.$image['id_image']) : $image['id_image']); $cover['id_image_only'] = (int)$image['id_image']; } $product_images[(int)$image['id_image']] = $image; } + if (!isset($cover)) - $cover = array( - 'id_image' => $this->context->language->iso_code.'-default', - 'legend' => 'No picture', - 'title' => 'No picture' + { + if(isset($images[0])) + { + $cover = $images[0]; + $cover['id_image'] = (Configuration::get('PS_LEGACY_IMAGES') ? ($this->product->id.'-'.$images[0]['id_image']) : $images[0]['id_image']); + $cover['id_image_only'] = (int)$images[0]['id_image']; + } + else + $cover = array( + 'id_image' => $this->context->language->iso_code.'-default', + 'legend' => 'No picture', + 'title' => 'No picture' ); + } $size = Image::getSize(ImageType::getFormatedName('large')); $this->context->smarty->assign(array( - 'have_image' => Product::getCover((int)Tools::getValue('id_product')), + 'have_image' => isset($cover['id_image'])? array((int)$cover['id_image']) : Product::getCover((int)Tools::getValue('id_product')), 'cover' => $cover, 'imgWidth' => (int)$size['width'], 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), @@ -432,11 +445,37 @@ class ProductControllerCore extends FrontController else $combinations[$row['id_product_attribute']]['available_date'] = ''; - if (isset($combination_images[$row['id_product_attribute']][0]['id_image'])) - $combinations[$row['id_product_attribute']]['id_image'] = $combination_images[$row['id_product_attribute']][0]['id_image']; - else + if (!isset($combination_images[$row['id_product_attribute']][0]['id_image'])) $combinations[$row['id_product_attribute']]['id_image'] = -1; + else + { + $combinations[$row['id_product_attribute']]['id_image'] = $id_image = (int)$combination_images[$row['id_product_attribute']][0]['id_image']; + if ($row['default_on'] && $id_image > 0) + { + if (isset($this->context->smarty->tpl_vars['images']->value)) + $product_images = $this->context->smarty->tpl_vars['images']->value; + if (is_array($product_images) && isset($product_images[$id_image])) + { + $product_images[$id_image]['cover'] = 1; + $this->context->smarty->assign('mainImage', $product_images[$id_image]); + if (count($product_images)) + $this->context->smarty->assign('images', $product_images); + } + if (isset($this->context->smarty->tpl_vars['cover']->value)) + $cover = $this->context->smarty->tpl_vars['cover']->value; + if (is_array($cover) && is_array($product_images)) + { + $product_images[$cover['id_image']]['cover'] = 0; + if (isset($product_images[$id_image])) + $cover = $product_images[$id_image]; + $cover['id_image'] = (Configuration::get('PS_LEGACY_IMAGES') ? ($this->product->id.'-'.$id_image) : (int)$id_image); + $cover['id_image_only'] = (int)$id_image; + $this->context->smarty->assign('cover', $cover); + } + } + } } + // wash attributes list (if some attributes are unavailables and if allowed to wash it) if (!Product::isAvailableWhenOutOfStock($this->product->out_of_stock) && Configuration::get('PS_DISP_UNAVAILABLE_ATTR') == 0) { @@ -616,4 +655,4 @@ class ProductControllerCore extends FrontController } return $specific_prices; } -} +} \ No newline at end of file diff --git a/themes/default/js/product.js b/themes/default/js/product.js index 7e2ae97a3..755ba2024 100644 --- a/themes/default/js/product.js +++ b/themes/default/js/product.js @@ -118,7 +118,7 @@ function findCombination(firstTime) //show the large image in relation to the selected combination if (combinations[combination]['image'] && combinations[combination]['image'] != -1) - displayImage($('.thumb_' + combinations[combination]['image']).parent()); + displayImage($('#thumb_' + combinations[combination]['image']).parent()); //show discounts values according to the selected combination if (combinations[combination]['idCombination'] && combinations[combination]['idCombination'] > 0) @@ -418,8 +418,12 @@ function displayImage(domAAroundImgThumb, no_animation) if (domAAroundImgThumb.attr('href')) { var newSrc = domAAroundImgThumb.attr('href').replace('thickbox','large'); - if ($('#bigpic').attr('src') != newSrc) + if(typeof(bigpicSrc) == 'undefined' || bigpicSrc == '') + bigpicSrc = $('#bigpic').attr('src'); + if (bigpicSrc != newSrc) { + //fadeOut is too slow, displayImage can be called again before bigpic source has really changed so we use a global bigpicSrc + bigpicSrc = newSrc; $('#bigpic').fadeOut((no_animation ? 0 : 'fast'), function(){ $(this).attr('src', newSrc).show(); if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled) @@ -468,24 +472,29 @@ function serialScrollFixLock(event, targeted, scrolled, items, position) function refreshProductImages(id_product_attribute) { $('#thumbs_list_frame').scrollTo('li:eq(0)', 700, {axis:'x'}); - $('#thumbs_list li').hide(); + id_product_attribute = parseInt(id_product_attribute); - if (typeof(combinationImages) != 'undefined' && typeof(combinationImages[id_product_attribute]) != 'undefined') + if (id_product_attribute > 0 && typeof(combinationImages) != 'undefined' && typeof(combinationImages[id_product_attribute]) != 'undefined') { + $('#thumbs_list li').hide(); + $('#thumbs_list').trigger('goto', 0); for (var i = 0; i < combinationImages[id_product_attribute].length; i++) $('#thumbnail_' + parseInt(combinationImages[id_product_attribute][i])).show(); - } - if (i > 0) - { - var thumb_width = $('#thumbs_list_frame >li').width() + parseInt($('#thumbs_list_frame >li').css('marginRight')); - $('#thumbs_list_frame').width((parseInt((thumb_width)* i) + 3) + 'px'); // Bug IE6, needs 3 pixels more ? + if (parseInt($('#thumbs_list_frame >li').length) != parseInt($('#thumbs_list_frame >li:visible').length)) + $('#wrapResetImages').show('slow'); + else + $('#wrapResetImages').hide('slow'); } else { - $('#thumbnail_' + idDefaultImage).show(); - displayImage($('#thumbnail_' + idDefaultImage + ' a')); + $('#thumbs_list li').show(); + if (parseInt($('#thumbs_list_frame >li').length) == parseInt($('#thumbs_list_frame >li:visible').length)) + $('#wrapResetImages').hide('slow'); } + + var thumb_width = $('#thumbs_list_frame >li').width() + parseInt($('#thumbs_list_frame >li').css('marginRight')); + $('#thumbs_list_frame').width((parseInt((thumb_width) * $('#thumbs_list_frame >li').length)) + 'px'); $('#thumbs_list').trigger('goto', 0); serialScrollFixLock('', '', '', '', 0);// SerialScroll Bug on goto 0 ? } @@ -548,6 +557,12 @@ $(document).ready(function() $('#customizedDatas').append(uploading_in_progress); }); + original_url = window.location + ''; + first_url_check = true; + bigpicSrc = $('#bigpic').attr('src'); + checkUrl(); + initLocationChange(); + //init the price in relation of the selected attributes if (typeof productHasAttributes != 'undefined' && productHasAttributes) findCombination(true); @@ -563,11 +578,6 @@ $(document).ready(function() 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' }); - original_url = window.location + ''; - first_url_check = true; - checkUrl(); - initLocationChange(); - }); function saveCustomization() @@ -668,12 +678,12 @@ function getProductAttribute() function initLocationChange(time) { if(!time) time = 500; - setInterval(checkUrl, time); + setInterval(checkUrl, time); } function checkUrl() { - if (original_url != window.url || first_url_check) + if (original_url != window.location || first_url_check) { first_url_check = false; url = window.location + ''; @@ -710,11 +720,11 @@ function checkUrl() if (count >= 0) { findCombination(false); - original_url = window.location + ''; + original_url = url; } // no combination found = removing attributes from url else window.location = url.substring(0, url.indexOf('#')); } } -} +} \ No newline at end of file diff --git a/themes/default/product.tpl b/themes/default/product.tpl index b90d51a88..decb643cc 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -201,7 +201,7 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving {assign var=imageIds value="`$product->id`-`$image.id_image`"}
  • - {$image.legend|htmlspecialchars} + {$image.legend|htmlspecialchars}
  • {/foreach} @@ -285,7 +285,7 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving {assign var="groupName" value="group_$id_attribute_group"}
    {if ($group.group_type == 'select')} - {foreach from=$group.attributes key=id_attribute item=group_attribute} {/foreach} @@ -295,9 +295,9 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving {assign var="default_colorpicker" value=""} {foreach from=$group.attributes key=id_attribute item=group_attribute} - + {if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')} - {$colors.$id_attribute.name}
    + {$colors.$id_attribute.name}
    {/if}
    @@ -311,7 +311,7 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving
      {foreach from=$group.attributes key=id_attribute item=group_attribute}
    • - + {$group_attribute|escape:'htmlall':'UTF-8'}
    • {/foreach} @@ -613,7 +613,7 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving {if $field.type == 1}
    • - +
    • {counter} {/if} @@ -636,13 +636,10 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving
    {/if} - {if isset($packItems) && $packItems|@count > 0}

    {l s='Pack content'}

    {include file="$tpl_dir./product-list.tpl" products=$packItems}
    {/if} - -{/if} - +{/if} \ No newline at end of file From f00d0e847120025b972d78356d1c1326ff2ac65a Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 4 Apr 2013 12:48:22 +0200 Subject: [PATCH 5/9] [*] FO : Check if grid_prestashop.css is available in theme before including --- classes/controller/FrontController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/controller/FrontController.php b/classes/controller/FrontController.php index 4b6c0503f..14dc91682 100755 --- a/classes/controller/FrontController.php +++ b/classes/controller/FrontController.php @@ -721,7 +721,9 @@ class FrontControllerCore extends Controller $this->setMobileMedia(); return true; } - $this->addCSS(_THEME_CSS_DIR_.'grid_prestashop.css', 'all'); + + if (Tools::file_exists_cache(_PS_ROOT_DIR_.Tools::str_replace_once(__PS_BASE_URI__, DIRECTORY_SEPARATOR, _THEME_CSS_DIR_.'grid_prestashop.css'))) + $this->addCSS(_THEME_CSS_DIR_.'grid_prestashop.css', 'all'); $this->addCSS(_THEME_CSS_DIR_.'global.css', 'all'); $this->addjquery(); $this->addjqueryPlugin('easing'); From c67ea6c02250922195208711a25486c82082dd18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Thu, 4 Apr 2013 14:35:14 +0200 Subject: [PATCH 6/9] [-] Core: Cache of Cart::getPackageList is now per cart --- classes/Cart.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/Cart.php b/classes/Cart.php index 1afc74b67..41a7e1d24 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -1591,9 +1591,9 @@ class CartCore extends ObjectModel */ public function getPackageList($flush = false) { - static $cache = false; - if ($cache !== false && !$flush) - return $cache; + static $cache = array(); + if (isset($cache[(int)$this->id]) && $cache[(int)$this->id] !== false && !$flush) + return $cache[(int)$this->id]; $product_list = $this->getProducts(); // Step 1 : Get product informations (warehouse_list and carrier_list), count warehouse @@ -1821,7 +1821,7 @@ class CartCore extends ObjectModel ); } } - $cache = $final_package_list; + $cache[(int)$this->id] = $final_package_list; return $final_package_list; } From a1ef60043ee17966ec3005520fbcdedc423b478b Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 4 Apr 2013 16:55:29 +0200 Subject: [PATCH 7/9] [-] FO : Do not fade out on bigpic source change --- themes/default/js/product.js | 20 ++++++-------------- themes/default/product.tpl | 4 ++-- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/themes/default/js/product.js b/themes/default/js/product.js index 755ba2024..e97e7446c 100644 --- a/themes/default/js/product.js +++ b/themes/default/js/product.js @@ -414,21 +414,14 @@ function displayImage(domAAroundImgThumb, no_animation) { if (typeof(no_animation) == 'undefined') no_animation = false; - if (domAAroundImgThumb.attr('href')) { - var newSrc = domAAroundImgThumb.attr('href').replace('thickbox','large'); - if(typeof(bigpicSrc) == 'undefined' || bigpicSrc == '') - bigpicSrc = $('#bigpic').attr('src'); - if (bigpicSrc != newSrc) + var newSrc = domAAroundImgThumb.attr('href').replace('thickbox', 'large'); + if ($('#bigpic').attr('src') != newSrc) { - //fadeOut is too slow, displayImage can be called again before bigpic source has really changed so we use a global bigpicSrc - bigpicSrc = newSrc; - $('#bigpic').fadeOut((no_animation ? 0 : 'fast'), function(){ - $(this).attr('src', newSrc).show(); - if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled) - $(this).attr('alt', domAAroundImgThumb.attr('href')); - }); + $('#bigpic').attr('src', newSrc); + if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled) + $(this).attr('alt', domAAroundImgThumb.attr('href')); } $('#views_block li a').removeClass('shown'); $(domAAroundImgThumb).addClass('shown'); @@ -481,7 +474,7 @@ function refreshProductImages(id_product_attribute) $('#thumbs_list').trigger('goto', 0); for (var i = 0; i < combinationImages[id_product_attribute].length; i++) $('#thumbnail_' + parseInt(combinationImages[id_product_attribute][i])).show(); - if (parseInt($('#thumbs_list_frame >li').length) != parseInt($('#thumbs_list_frame >li:visible').length)) + if (parseInt($('#thumbs_list_frame >li:visible').length) < parseInt($('#thumbs_list_frame >li').length)) $('#wrapResetImages').show('slow'); else $('#wrapResetImages').hide('slow'); @@ -559,7 +552,6 @@ $(document).ready(function() original_url = window.location + ''; first_url_check = true; - bigpicSrc = $('#bigpic').attr('src'); checkUrl(); initLocationChange(); diff --git a/themes/default/product.tpl b/themes/default/product.tpl index decb643cc..b7695b1e7 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -200,7 +200,7 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving {foreach from=$images item=image name=thumbnails} {assign var=imageIds value="`$product->id`-`$image.id_image`"}
  • - + {$image.legend|htmlspecialchars}
  • @@ -540,7 +540,7 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving {foreach from=$accessories item=accessory name=accessories_list} {if ($accessory.allow_oosp || $accessory.quantity_all_versions > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode)} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} -
  • +
  • {$accessory.name|escape:'htmlall':'UTF-8'} {if $accessory.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} - {if $priceDisplay != 1}{displayWtPrice p=$accessory.price}{else}{displayWtPrice p=$accessory.price_tax_exc}{/if}{/if} From 24947d3ae6fbd5bc03346475872d6cddf2049565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Thu, 4 Apr 2013 19:03:27 +0200 Subject: [PATCH 8/9] [-] FO: Extension test on file attachment for contact form should not be case sensitive #PSCFV-8616 --- controllers/admin/AdminCustomerThreadsController.php | 2 +- controllers/front/ContactController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminCustomerThreadsController.php b/controllers/admin/AdminCustomerThreadsController.php index 8d3d68d5c..b678cc1d4 100644 --- a/controllers/admin/AdminCustomerThreadsController.php +++ b/controllers/admin/AdminCustomerThreadsController.php @@ -458,7 +458,7 @@ class AdminCustomerThreadsControllerCore extends AdminController $extension = false; foreach ($extensions as $key => $val) - if (substr($filename, -4) == $key || substr($filename, -5) == $key) + if (substr(Tools::strtolower($filename), -4) == $key || substr(Tools::strtolower($filename), -5) == $key) { $extension = $val; break; diff --git a/controllers/front/ContactController.php b/controllers/front/ContactController.php index 713d8bd1d..598258a8d 100644 --- a/controllers/front/ContactController.php +++ b/controllers/front/ContactController.php @@ -57,7 +57,7 @@ class ContactControllerCore extends FrontController $this->errors[] = Tools::displayError('Please select a subject from the list provided. '); else if (!empty($_FILES['fileUpload']['name']) && $_FILES['fileUpload']['error'] != 0) $this->errors[] = Tools::displayError('An error occurred during the file-upload process.'); - else if (!empty($_FILES['fileUpload']['name']) && !in_array(substr($_FILES['fileUpload']['name'], -4), $extension) && !in_array(substr($_FILES['fileUpload']['name'], -5), $extension)) + else if (!empty($_FILES['fileUpload']['name']) && !in_array(substr(Tools::strtolower($_FILES['fileUpload']['name']), -4), $extension) && !in_array(substr(Tools::strtolower($_FILES['fileUpload']['name']), -5), $extension)) $this->errors[] = Tools::displayError('Bad file extension'); else { From 5fab6394efd88dc8f6ec4ecdf69b87493db7fac3 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Fri, 5 Apr 2013 09:55:05 +0200 Subject: [PATCH 9/9] // Added SEO warning for accented chars in URL --- controllers/admin/AdminMetaController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminMetaController.php b/controllers/admin/AdminMetaController.php index a268098ff..6a08f8bc7 100644 --- a/controllers/admin/AdminMetaController.php +++ b/controllers/admin/AdminMetaController.php @@ -66,7 +66,7 @@ class AdminMetaControllerCore extends AdminController ), 'PS_ALLOW_ACCENTED_CHARS_URL' => array( 'title' => $this->l('Accented URL'), - 'desc' => $this->l('Enable if you want to allow accented characters in your friendly URLs.'), + 'desc' => $this->l('Enable if you want to allow accented characters in your friendly URLs.').' '.$this->l('You should only activate this option if you are using non-latin characters ; for all the latin charsets, your SEO will be better without this option.'), 'validation' => 'isBool', 'cast' => 'intval', 'type' => 'bool'