From 02c6dc5eaf007a9c0a08c7431484e774330be513 Mon Sep 17 00:00:00 2001 From: Alexander Killing Date: Thu, 26 Dec 2024 11:23:37 +0100 Subject: [PATCH] style/copage: type and import fixes --- .../ILIAS/Style/Content/classes/class.ilObjStyleSheet.php | 2 +- .../ILIAS/Style/Content/classes/class.ilStyleImportParser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ILIAS/Style/Content/classes/class.ilObjStyleSheet.php b/components/ILIAS/Style/Content/classes/class.ilObjStyleSheet.php index b42069bd67e4..6c6232603e55 100755 --- a/components/ILIAS/Style/Content/classes/class.ilObjStyleSheet.php +++ b/components/ILIAS/Style/Content/classes/class.ilObjStyleSheet.php @@ -2001,7 +2001,7 @@ public function createFromXMLFile( array( "style_id" => array("integer", $this->getId()), "type" => array("text", $char["type"]), - "characteristic" => array("text", $char["class"])), + "characteristic" => array("text", ilStr::subStr($char["class"], 0, 30))), array("hide" => array("integer", 0)) ); $this->is_3_10_skin = false; diff --git a/components/ILIAS/Style/Content/classes/class.ilStyleImportParser.php b/components/ILIAS/Style/Content/classes/class.ilStyleImportParser.php index e05dd5f1d457..8c1473a31807 100755 --- a/components/ILIAS/Style/Content/classes/class.ilStyleImportParser.php +++ b/components/ILIAS/Style/Content/classes/class.ilStyleImportParser.php @@ -125,7 +125,7 @@ public function handlerBeginTag( "parameter" => $a_attribs["Name"], "type" => $this->current_type, "value" => $a_attribs["Value"], - "custom" => $a_attribs["Custom"]); + "custom" => $a_attribs["Custom"] ?? null); break; case "StyleColor":