mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: replace Director::redirect
This commit is contained in:
parent
efb1264926
commit
2cbbe096ca
@ -175,7 +175,7 @@ class BlogEntry extends Page {
|
||||
if($this->TrackBacksEnabled() && $this->hasExtension('TrackBackDecorator')) {
|
||||
return $this->decoratedTrackbackping();
|
||||
} else {
|
||||
Director::redirect($this->Link());
|
||||
Controller::curr()->redirect($this->Link());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -289,7 +289,7 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
||||
$blogentry->writeToStage("Stage");
|
||||
$blogentry->publish("Stage", "Live");
|
||||
|
||||
Director::redirect($this->Link());
|
||||
$this->redirect($this->Link());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user