<?php foreach ($_['notes'] as $note) { ?>
<tr id="note-<?php p($note['guid']); ?>">
<td>
- <a class="cellclick" href="<?php p(OC::$server->getURLGenerator()->linkToRoute('grauphel.gui.note', array('guid' => $note['guid']))); ?>"><?php echo ($note['title']); ?></a>
+ <a class="cellclick" href="<?php p($_['urlGen']->linkToRoute('grauphel.gui.note', array('guid' => $note['guid']))); ?>"><?php echo ($note['title']); ?></a>
</td>
<td style="color: <?php echo p($note['dateColor']); ?>">
- <?php p(\OCP\Util::formatDate(strtotime($note['last-change-date']))); ?>
+ <?php p($_['date']->formatDate(strtotime($note['last-change-date']))); ?>
</td>
</tr>
<?php } ?>