Permalink
Browse files

MINOR: Fix deprecation notice when saving user settings

  • Loading branch information...
1 parent 1334711 commit a89228e9341023caeb7d303eee5d7a8ed1500529 Andrew O'Neil committed Apr 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 security/Member.php
View
4 security/Member.php
@@ -1456,7 +1456,7 @@ function __construct($controller, $name, $member) {
function dosave($data, $form) {
// don't allow ommitting or changing the ID
if(!isset($data['ID']) || $data['ID'] != Member::currentUserID()) {
- return Director::redirectBack();
+ return $this->controller->redirectBack();
}
$SQL_data = Convert::raw2sql($data);
@@ -1476,7 +1476,7 @@ function dosave($data, $form) {
$message = _t('Member.PROFILESAVESUCCESS', 'Successfully saved.') . ' ' . $closeLink;
$form->sessionMessage($message, 'good');
- Director::redirectBack();
+ $this->controller->redirectBack();
}
}

0 comments on commit a89228e

Please sign in to comment.