mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 09:06:02 +00:00
Fixing use of deprecated static Director::redirect and redirectBack
This commit is contained in:
parent
71a988843a
commit
1a6705a5f1
@ -25,6 +25,6 @@ class TestFileUploadPage_Controller extends TestPage_Controller{
|
||||
$member = new Member();
|
||||
$form->saveInto($member);
|
||||
$member->write();
|
||||
Director::redirectBack();
|
||||
$this->redirectBack();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -72,11 +72,11 @@ class TestPage_Controller extends Page_Controller {
|
||||
function save($data, $form) {
|
||||
$form->saveInto($this->dataRecord);
|
||||
$this->dataRecord->write();
|
||||
Director::redirectBack();
|
||||
$this->redirectBack();
|
||||
}
|
||||
|
||||
function gohome() {
|
||||
Director::redirect("./");
|
||||
$this->redirect("./");
|
||||
}
|
||||
|
||||
function EmailForm() {
|
||||
|
@ -21,7 +21,7 @@ class TestMultiForm extends MultiForm {
|
||||
|
||||
Session::set("MultiFormMessage", "Your information has been submitted.");
|
||||
|
||||
Director::redirect(Director::BaseURL() . $this->Controller()->URLSegment);
|
||||
$this->Controller()->redirect(Director::BaseURL() . $this->Controller()->URLSegment);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user