Get rid of deprecated API usage:
[grauphel.git] / templates / gui-note.php
index 8061a50adc2998be2ee7259842d2520600569eab..bb8d03e282bdd910670dd3d47b6b6e4871169877 100644 (file)
@@ -1,10 +1,8 @@
-<link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
 
 <?php /** @var $l OC_L10N */ ?>
 <?php $_['appNavigation']->printPage(); ?>
 
-<script type="text/javascript" src="<?php p(OCP\Util::linkTo('grauphel','js/grauphel.js')); ?>"></script>
-
 <div id="app-content" class="content">
  <div id="searchresults" class="hidden"></div>
  <div class="actions">
@@ -16,7 +14,7 @@
  <h1><?php echo ($_['note']->title); ?></h1>
  <p class="muted">
   Last modified:
-  <?php p(\OCP\Util::formatDate(strtotime($_['note']->{'last-change-date'}))); ?>
+  <?php p($_['date']->formatDate(strtotime($_['note']->{'last-change-date'}))); ?>
  </p>
  <div class="note-content">
   <?php echo $_['note-content']; ?>