diff options
Diffstat (limited to 'app/controllers/authenticated_controller.php')
| -rw-r--r-- | app/controllers/authenticated_controller.php | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/app/controllers/authenticated_controller.php b/app/controllers/authenticated_controller.php index f50d478..e051ffa 100644 --- a/app/controllers/authenticated_controller.php +++ b/app/controllers/authenticated_controller.php @@ -1,8 +1,4 @@ <?php -# Lifter007: TODO -# Lifter003: TODO -# Lifter010: TODO - /* * Copyright (C) 2009 - Marcus Lunzenauer <mlunzena@uos.de> * @@ -16,4 +12,21 @@ class AuthenticatedController extends StudipController { protected $with_session = true; //we do need to have a session for this controller protected $allow_nobody = false; //nobody is not allowed and always gets a login-screen + + public function before_filter(&$action, &$args) + { + parent::before_filter($action, $args); + + // Restore request if present + if (isset($this->flash['request'])) { + foreach ($this->flash['request'] as $key => $value) { + Request::set($key, $value); + } + } + } + + protected function keepRequest() + { + $this->flash['request'] = Request::getInstance()->getIterator()->getArrayCopy(); + } } |
