diff --git a/com_swjprojects/site/models/version.php b/com_swjprojects/site/models/version.php index 1f40c24a..a8a258d7 100644 --- a/com_swjprojects/site/models/version.php +++ b/com_swjprojects/site/models/version.php @@ -277,6 +277,10 @@ public function getItem($pk = null) // Set changelog $registry = new Registry($data->changelog); $data->changelog = $registry->toArray(); + foreach ($data->changelog as &$changelog) + { + $changelog['description'] = nl2br($changelog['description']); + } // Set project $data->project = new stdClass(); diff --git a/com_swjprojects/site/models/versions.php b/com_swjprojects/site/models/versions.php index aec72860..d42ce3b1 100644 --- a/com_swjprojects/site/models/versions.php +++ b/com_swjprojects/site/models/versions.php @@ -327,6 +327,10 @@ public function getItems() // Set changelog $registry = new Registry($item->changelog); $item->changelog = $registry->toArray(); + foreach ($item->changelog as &$changelog) + { + $changelog['description'] = nl2br($changelog['description']); + } // Set project $item->project = new stdClass();