Skip to content

Commit

Permalink
content style: fix text_block import
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Dec 26, 2024
1 parent 82f105e commit dfaf58e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Services/Style/Content/classes/class.ilObjStyleSheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -1970,6 +1970,10 @@ public function createFromXMLFile(
}
}

if ($tag["type"] === "text_block" && $tag["tag"] === "div") {
$tag["tag"] = "p";
}

$q = "INSERT INTO style_parameter (id,style_id, tag, class, parameter, type, value, custom) VALUES " .
"(" .
$ilDB->quote($id, "integer") . "," .
Expand Down

0 comments on commit dfaf58e

Please sign in to comment.