From a5a62b40e0c5a898e1e33a1cde690a6ab32059b4 Mon Sep 17 00:00:00 2001 From: Benjamin Perche Date: Wed, 23 Jul 2014 08:34:21 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20typo,=20method=20called=20markRewritenUrl?= =?UTF-8?q?Obsolete=20instead=20of=20markRewrittenUrlObsolete=20=09modifi?= =?UTF-8?q?=C3=A9:=20=20=20=20=20=20=20=20=20core/lib/Thelia/Model/Brand.p?= =?UTF-8?q?hp=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20core/lib/Thelia?= =?UTF-8?q?/Model/Category.php=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20core/lib/Thelia/Model/Content.php=20=09modifi=C3=A9:=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20core/lib/Thelia/Model/Folder.php=20=09modi?= =?UTF-8?q?fi=C3=A9:=20=20=20=20=20=20=20=20=20core/lib/Thelia/Model/Produ?= =?UTF-8?q?ct.php=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20core/lib/Th?= =?UTF-8?q?elia/Model/Tools/UrlRewritingTrait.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Thelia/Model/Brand.php | 2 +- core/lib/Thelia/Model/Category.php | 2 +- core/lib/Thelia/Model/Content.php | 2 +- core/lib/Thelia/Model/Folder.php | 2 +- core/lib/Thelia/Model/Product.php | 2 +- core/lib/Thelia/Model/Tools/UrlRewritingTrait.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) 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())