Skip to content
Snippets Groups Projects
Commit de96c7c3 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

replace formatReady with formatLinks, re #19

parent c96e86f2
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</h1> </h1>
<nav> <nav>
<span> <span>
<?= $termin['room'] ? _('Raum') . ': ' . formatReady($termin['room']) : '' ?> <?= $termin['room'] ? _('Raum') . ': ' . formatLinks($termin['room']) : '' ?>
</span> </span>
<? if($admin && $isProfile && $termin['type'] === 'CalendarEvent'): ?> <? if($admin && $isProfile && $termin['type'] === 'CalendarEvent'): ?>
<a href="<?= URLHelper::getLink('dispatch.php/calendar/single/edit/' . $termin['range_id'] . '/' . $termin['event_id'], ['source_page' => 'dispatch.php/profile']) ?>"> <a href="<?= URLHelper::getLink('dispatch.php/calendar/single/edit/' . $termin['range_id'] . '/' . $termin['event_id'], ['source_page' => 'dispatch.php/profile']) ?>">
......
...@@ -64,7 +64,7 @@ $is_exTermin = $termin instanceof CourseExDate; ...@@ -64,7 +64,7 @@ $is_exTermin = $termin instanceof CourseExDate;
</a> </a>
<?= $room_holiday ?: '' ?> <?= $room_holiday ?: '' ?>
<? elseif ($freeTextRoom = $termin->getRoomName()) : ?> <? elseif ($freeTextRoom = $termin->getRoomName()) : ?>
<?= sprintf('(%s)', formatReady($freeTextRoom)) ?> <?= sprintf('(%s)', formatLinks($freeTextRoom)) ?>
<? else : ?> <? else : ?>
<?= _('Keine Raumangabe') ?> <?= _('Keine Raumangabe') ?>
<?= $room_holiday ?: '' ?> <?= $room_holiday ?: '' ?>
......
...@@ -17,7 +17,7 @@ if ($assigned || $freetext) { ...@@ -17,7 +17,7 @@ if ($assigned || $freetext) {
if ($freetext) { if ($freetext) {
foreach ($freetext as $name => $count) { foreach ($freetext as $name => $count) {
if ($name) { if ($name) {
$rooms[] = '(' . ($plain ? $name : formatReady($name)) . ')'; $rooms[] = '(' . ($plain ? $name : formatLinks($name)) . ')';
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment