// Fix PrestaShopException typo

This commit is contained in:
rMalie
2012-01-04 13:53:19 +00:00
parent 1ad456ad41
commit 4b17d64cf7
36 changed files with 96 additions and 86 deletions
+2 -2
View File
@@ -162,7 +162,7 @@ class CategoryCore extends ObjectModel
public function update($nullValues = false)
{
if ($this->id_parent == $this->id)
throw new PrestashopException('a category cannot be it\'s own parent');
throw new PrestaShopException('a category cannot be it\'s own parent');
// Update group selection
$this->updateGroup($this->groupBox);
$this->level_depth = $this->calcLevelDepth();
@@ -395,7 +395,7 @@ class CategoryCore extends ObjectModel
public function recalculateLevelDepth($id_category)
{
if (!is_numeric($id_category))
throw new PrestashopException('id category is not numeric');
throw new PrestaShopException('id category is not numeric');
/* Gets all children */
$categories = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
SELECT id_category, id_parent, level_depth