Skip to content

Commit

Permalink
Fix redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
RiKap committed Sep 24, 2015
1 parent 97751fa commit 6028c62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Events/OnRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ public function getSubscribedEvents()

public function onPresenter(Application $application, Presenter $presenter)
{
if (Debugger::$productionMode === FALSE
if (
Debugger::$productionMode === FALSE
&& $this->changelogManager->haveFilesChanged()
&& $this->changelogManager->importNewChangelogData()
&& ! $presenter instanceof ChangelogPresenter
) {
$this->httpResponse->redirect('db-changelog');
$this->httpResponse->redirect('/db-changelog');
exit();
}
}
Expand Down

0 comments on commit 6028c62

Please sign in to comment.