Skip to content

Commit

Permalink
updated user to userSession as class was renamed
Browse files Browse the repository at this point in the history
user is now known as userSession in blocks
  • Loading branch information
lukeholder committed Feb 12, 2013
1 parent facf9a4 commit c896e76
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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));
}
Expand Down

0 comments on commit c896e76

Please sign in to comment.