commit 9e131918c3fd7c68a89a8b5399187358520c2386
parent 960440503a113be45b0e98cfe4c8abc6a2fd9884
Author: Jan Dankert <devnull@localhost>
Date: Sun, 8 Jul 2018 22:48:48 +0200
Id ermitteln und immer den Super-Konstruktor aufrufen!
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/cms-ui/action/IndexAction.class.php b/modules/cms-ui/action/IndexAction.class.php
@@ -32,7 +32,9 @@ class IndexAction extends Action
*/
function __construct()
{
- $this->perspective = Session::get('perspective');
+ parent::__construct();
+
+ $this->perspective = Session::get('perspective');
Logger::info('Index: Perspective is '.$this->perspective);
if ( !empty($this->perspective))
@@ -130,6 +132,7 @@ class IndexAction extends Action
if ( $userIsLoggedIn && isset($_REQUEST['action'])) {
$action = $_REQUEST['action'];
}
+ $id = $this->getRequestId();
$jsFiles = $this->getJSFiles();
$cssFiles = $this->getCSSFiles();