Fix typo, method called markRewritenUrlObsolete instead of markRewrittenUrlObsolete
modifié: core/lib/Thelia/Model/Brand.php modifié: core/lib/Thelia/Model/Category.php modifié: core/lib/Thelia/Model/Content.php modifié: core/lib/Thelia/Model/Folder.php modifié: core/lib/Thelia/Model/Product.php modifié: core/lib/Thelia/Model/Tools/UrlRewritingTrait.php
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ trait UrlRewritingTrait
|
||||
/**
|
||||
* Mark the current URL as obseolete
|
||||
*/
|
||||
public function markRewritenUrlObsolete()
|
||||
public function markRewrittenUrlObsolete()
|
||||
{
|
||||
RewritingUrlQuery::create()
|
||||
->filterByView($this->getRewrittenUrlViewName())
|
||||
|
||||
Reference in New Issue
Block a user