From 2d2257b5993815515b484a2b9c5790fa5849e9ed Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Fri, 17 Nov 2023 08:31:41 +0100 Subject: [PATCH] do init htmlguielements in non-gui class --- public_html/deployment/classes/project.class.php | 1 - public_html/deployment/classes/project_gui.class.php | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php index 818cb762..cd97e052 100644 --- a/public_html/deployment/classes/project.class.php +++ b/public_html/deployment/classes/project.class.php @@ -123,7 +123,6 @@ class project extends base { */ public function __construct($sId = false) { $this->oUser = new user(); - $this->_oHtml = new htmlguielements(); $this->_readConfig(); if ($sId) { $this->setProjectById($sId); diff --git a/public_html/deployment/classes/project_gui.class.php b/public_html/deployment/classes/project_gui.class.php index c7b9d733..8f1badbb 100644 --- a/public_html/deployment/classes/project_gui.class.php +++ b/public_html/deployment/classes/project_gui.class.php @@ -21,6 +21,15 @@ require_once 'htmlguielements.class.php'; // class project { class projectgui extends project { + /** + * constructor + * @param string $sId id of the project + */ + public function __construct($sId = false) { + parent::__construct($sId); + $this->_oHtml = new htmlguielements(); + } + // ---------------------------------------------------------------------- // private functions // ---------------------------------------------------------------------- -- GitLab