diff --git a/core/lib/Thelia/Model/Brand.php b/core/lib/Thelia/Model/Brand.php index fad681627..76d1f991d 100644 --- a/core/lib/Thelia/Model/Brand.php +++ b/core/lib/Thelia/Model/Brand.php @@ -22,7 +22,7 @@ class Brand extends BaseBrand implements FileModelParentInterface /** * {@inheritDoc} */ - protected function getRewrittenUrlViewName() + public function getRewrittenUrlViewName() { return 'brand'; } diff --git a/core/lib/Thelia/Model/Category.php b/core/lib/Thelia/Model/Category.php index 2fcd28b8d..15b18f529 100644 --- a/core/lib/Thelia/Model/Category.php +++ b/core/lib/Thelia/Model/Category.php @@ -31,7 +31,7 @@ class Category extends BaseCategory implements FileModelParentInterface /** * {@inheritDoc} */ - protected function getRewrittenUrlViewName() + public function getRewrittenUrlViewName() { return 'category'; } diff --git a/core/lib/Thelia/Model/Content.php b/core/lib/Thelia/Model/Content.php index 24f8eec56..8cfadab74 100644 --- a/core/lib/Thelia/Model/Content.php +++ b/core/lib/Thelia/Model/Content.php @@ -27,7 +27,7 @@ class Content extends BaseContent implements FileModelParentInterface /** * {@inheritDoc} */ - protected function getRewrittenUrlViewName() + public function getRewrittenUrlViewName() { return 'content'; } diff --git a/core/lib/Thelia/Model/Folder.php b/core/lib/Thelia/Model/Folder.php index 4302b8619..5d2b1c350 100644 --- a/core/lib/Thelia/Model/Folder.php +++ b/core/lib/Thelia/Model/Folder.php @@ -20,7 +20,7 @@ class Folder extends BaseFolder implements FileModelParentInterface /** * {@inheritDoc} */ - protected function getRewrittenUrlViewName() + public function getRewrittenUrlViewName() { return 'folder'; } diff --git a/core/lib/Thelia/Model/Product.php b/core/lib/Thelia/Model/Product.php index be45997e2..3cf54da7b 100644 --- a/core/lib/Thelia/Model/Product.php +++ b/core/lib/Thelia/Model/Product.php @@ -25,7 +25,7 @@ class Product extends BaseProduct implements FileModelParentInterface /** * {@inheritDoc} */ - protected function getRewrittenUrlViewName() + public function getRewrittenUrlViewName() { return 'product'; } diff --git a/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php b/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php index 8e1328d02..672c6d143 100644 --- a/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php +++ b/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php @@ -29,7 +29,7 @@ trait UrlRewritingTrait /** * @returns string the view name of the rewritten object (e.g., 'category', 'product') */ - abstract protected function getRewrittenUrlViewName(); + abstract public function getRewrittenUrlViewName(); /** * Get the object URL for the given locale, rewritten if rewriting is enabled.