From c896e765c370f5de39f2e72ebafbc75ec049f7b9 Mon Sep 17 00:00:00 2001 From: Luke Holder Date: Tue, 12 Feb 2013 17:40:08 +0800 Subject: [PATCH] updated user to userSession as class was renamed user is now known as userSession in blocks --- .../controllers/CocktailRecipes_IngredientsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/cocktailrecipes/controllers/CocktailRecipes_IngredientsController.php b/plugins/cocktailrecipes/controllers/CocktailRecipes_IngredientsController.php index 0a53c24..b419418 100644 --- a/plugins/cocktailrecipes/controllers/CocktailRecipes_IngredientsController.php +++ b/plugins/cocktailrecipes/controllers/CocktailRecipes_IngredientsController.php @@ -28,11 +28,11 @@ public function actionSaveIngredient() $model->setAttributes($attributes); if (blx()->cocktailRecipes->saveIngredient($model)) { - blx()->user->setNotice(Blocks::t('Ingredient saved.')); + blx()->userSession->setNotice(Blocks::t('Ingredient saved.')); return $this->redirectToPostedUrl(array('ingredientId' => $model->getAttribute('id'))); } else { - blx()->user->setError(Blocks::t("Couldn't save ingredient.")); + blx()->userSession->setError(Blocks::t("Couldn't save ingredient.")); return $this->renderRequestedTemplate(array('ingredient' => $model)); }