diff --git a/core/lib/Thelia/Model/Brand.php b/core/lib/Thelia/Model/Brand.php index a153e1bc7..fad681627 100644 --- a/core/lib/Thelia/Model/Brand.php +++ b/core/lib/Thelia/Model/Brand.php @@ -81,7 +81,7 @@ class Brand extends BaseBrand implements FileModelParentInterface */ public function postDelete(ConnectionInterface $con = null) { - $this->markRewritenUrlObsolete(); + $this->markRewrittenUrlObsolete(); $this->dispatchEvent(TheliaEvents::AFTER_DELETEBRAND, new BrandEvent($this)); } diff --git a/core/lib/Thelia/Model/Category.php b/core/lib/Thelia/Model/Category.php index efa96c245..2fcd28b8d 100644 --- a/core/lib/Thelia/Model/Category.php +++ b/core/lib/Thelia/Model/Category.php @@ -166,7 +166,7 @@ class Category extends BaseCategory implements FileModelParentInterface */ public function postDelete(ConnectionInterface $con = null) { - $this->markRewritenUrlObsolete(); + $this->markRewrittenUrlObsolete(); //delete all subcategories $subCategories = CategoryQuery::findAllChild($this->getId()); diff --git a/core/lib/Thelia/Model/Content.php b/core/lib/Thelia/Model/Content.php index f5968bb37..24f8eec56 100644 --- a/core/lib/Thelia/Model/Content.php +++ b/core/lib/Thelia/Model/Content.php @@ -170,7 +170,7 @@ class Content extends BaseContent implements FileModelParentInterface public function postDelete(ConnectionInterface $con = null) { - $this->markRewritenUrlObsolete(); + $this->markRewrittenUrlObsolete(); $this->dispatchEvent(TheliaEvents::AFTER_DELETECONTENT, new ContentEvent($this)); } diff --git a/core/lib/Thelia/Model/Folder.php b/core/lib/Thelia/Model/Folder.php index 13ca25040..4302b8619 100644 --- a/core/lib/Thelia/Model/Folder.php +++ b/core/lib/Thelia/Model/Folder.php @@ -129,7 +129,7 @@ class Folder extends BaseFolder implements FileModelParentInterface public function postDelete(ConnectionInterface $con = null) { - $this->markRewritenUrlObsolete(); + $this->markRewrittenUrlObsolete(); $this->dispatchEvent(TheliaEvents::AFTER_DELETEFOLDER, new FolderEvent($this)); } diff --git a/core/lib/Thelia/Model/Product.php b/core/lib/Thelia/Model/Product.php index 439132574..be45997e2 100644 --- a/core/lib/Thelia/Model/Product.php +++ b/core/lib/Thelia/Model/Product.php @@ -268,7 +268,7 @@ class Product extends BaseProduct implements FileModelParentInterface */ public function postDelete(ConnectionInterface $con = null) { - $this->markRewritenUrlObsolete(); + $this->markRewrittenUrlObsolete(); $this->dispatchEvent(TheliaEvents::AFTER_DELETEPRODUCT, new ProductEvent($this)); } diff --git a/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php b/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php index 79947074f..8e1328d02 100644 --- a/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php +++ b/core/lib/Thelia/Model/Tools/UrlRewritingTrait.php @@ -128,7 +128,7 @@ trait UrlRewritingTrait /** * Mark the current URL as obseolete */ - public function markRewritenUrlObsolete() + public function markRewrittenUrlObsolete() { RewritingUrlQuery::create() ->filterByView($this->getRewrittenUrlViewName())