BUGFIX: replace Director::redirect

This commit is contained in:
carlos barberis 2012-06-21 13:45:07 +12:00
parent efb1264926
commit 2cbbe096ca
2 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}

View File

@ -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());
}
}