diff options
author | emkael <emkael@tlen.pl> | 2016-06-10 15:49:08 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-06-10 15:49:08 +0200 |
commit | afc6ff4012f4bfd6e020c865c2dfd7884476c66a (patch) | |
tree | c2a591f1509675dd3d2263cf613355bbdf9731cf /app | |
parent | 1f96da29ec5999497d36bb45bdd45597953bf4c1 (diff) |
* LanguageSelect now redirects to the same page, not hardcoded Profile page
Diffstat (limited to 'app')
-rw-r--r-- | app/frontend/controls/LanguageSelect.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/frontend/controls/LanguageSelect.php b/app/frontend/controls/LanguageSelect.php index 08cdcb7..162eb19 100644 --- a/app/frontend/controls/LanguageSelect.php +++ b/app/frontend/controls/LanguageSelect.php @@ -40,7 +40,11 @@ class LanguageSelect extends FacadeTemplateControl { $this->UserToChange, $this->Languages->SelectedValue ); - $this->Response->redirect($this->Service->constructUrl('Profile')); + $this->Response->redirect( + $this->Service->constructUrl( + $this->Service->getRequestedPage()->PagePath + ) + ); } private function _getLanguages() { |