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:
Benjamin Perche
2014-07-23 08:34:21 +02:00
parent 2b01453f50
commit a5a62b40e0
6 changed files with 6 additions and 6 deletions

View File

@@ -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));
}

View File

@@ -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());

View File

@@ -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));
}

View File

@@ -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));
}

View File

@@ -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));
}

View File

@@ -128,7 +128,7 @@ trait UrlRewritingTrait
/**
* Mark the current URL as obseolete
*/
public function markRewritenUrlObsolete()
public function markRewrittenUrlObsolete()
{
RewritingUrlQuery::create()
->filterByView($this->getRewrittenUrlViewName())