Projects/nettsiden-old
Projects
/
nettsiden-old
Archived
8
0
Fork 0

Fix newlines in project descriptions

This commit is contained in:
Markus Wang Halvorsen 2018-02-13 16:28:59 +01:00
parent 774f2754a0
commit 5e10d53c36
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ class Project{
public function __construct($id, $name, $descr, $owner, $owneruname, $active){
$this->id = $id;
$this->name = $name;
$this->descr = $descr;
$this->descr = explode("\n", $descr);
$this->owner = $owner;
$this->owneruname = $owneruname;
$this->active = $active;

View File

@ -89,7 +89,7 @@ $projects = array_values(array_filter(
<div class="event-info">
<h3 class="no-chin"><?= $project->getName() . " (ID: " . $projectID . ")"; ?></h3>
<p class="subnote"><?= 'Organisert av: ' . $project->getOwner(); ?></p>
<p><?= $project->getDescription(); ?></p>
<p><?= implode($event->getDescription(), "</p>\n<p>"); ?></p>
</div>
<div class="event-actions">