Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development
This commit is contained in:
+18
-18
@@ -45,24 +45,6 @@ class DispatcherCore
|
|||||||
* @var array List of default routes
|
* @var array List of default routes
|
||||||
*/
|
*/
|
||||||
public $default_routes = array(
|
public $default_routes = array(
|
||||||
'product_rule' => array(
|
|
||||||
'controller' => 'product',
|
|
||||||
'rule' => '{category:/}{id}-{rewrite}{-:ean13}.html',
|
|
||||||
'keywords' => array(
|
|
||||||
'id' => array('regexp' => '[0-9]+', 'param' => 'id_product'),
|
|
||||||
'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
|
||||||
'ean13' => array('regexp' => '[0-9\pL]*'),
|
|
||||||
'category' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
|
||||||
'categories' => array('regexp' => '[/_a-zA-Z0-9-\pL]*'),
|
|
||||||
'reference' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
|
||||||
'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
|
||||||
'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
|
||||||
'manufacturer' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
|
||||||
'supplier' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
|
||||||
'price' => array('regexp' => '[0-9\.,]*'),
|
|
||||||
'tags' => array('regexp' => '[a-zA-Z0-9-\pL]*'),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'layered_rule' => array(
|
'layered_rule' => array(
|
||||||
'controller' => 'category',
|
'controller' => 'category',
|
||||||
'rule' => '{id}-{rewrite}{/:selected_filters}',
|
'rule' => '{id}-{rewrite}{/:selected_filters}',
|
||||||
@@ -136,6 +118,24 @@ class DispatcherCore
|
|||||||
'fc' => 'module',
|
'fc' => 'module',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
'product_rule' => array(
|
||||||
|
'controller' => 'product',
|
||||||
|
'rule' => '{category:/}{id}-{rewrite}{-:ean13}.html',
|
||||||
|
'keywords' => array(
|
||||||
|
'id' => array('regexp' => '[0-9]+', 'param' => 'id_product'),
|
||||||
|
'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
||||||
|
'ean13' => array('regexp' => '[0-9\pL]*'),
|
||||||
|
'category' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
||||||
|
'categories' => array('regexp' => '[/_a-zA-Z0-9-\pL]*'),
|
||||||
|
'reference' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
||||||
|
'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
||||||
|
'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
||||||
|
'manufacturer' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
||||||
|
'supplier' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),
|
||||||
|
'price' => array('regexp' => '[0-9\.,]*'),
|
||||||
|
'tags' => array('regexp' => '[a-zA-Z0-9-\pL]*'),
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user