aboutsummaryrefslogtreecommitdiff
path: root/templates/gui-database.php
diff options
context:
space:
mode:
authorJosh Panter <joshu@unfettered.net>2018-10-05 23:19:05 +0200
committerChristian Weiske <cweiske@cweiske.de>2018-10-05 23:20:31 +0200
commit4c85b6387c7612e40ad94960225e55533ae85011 (patch)
tree09e26035e98e0a4fc998f18e0c7cba0950cea97a /templates/gui-database.php
parent9a5be0bddd55d2dbc462197a388c5f7625d01a5b (diff)
downloadgrauphel-4c85b6387c7612e40ad94960225e55533ae85011.tar.gz
grauphel-4c85b6387c7612e40ad94960225e55533ae85011.zip
Do not use OCP\Util anymore - API not avaiable in Nextcloud 14.
Resolves: https://github.com/cweiske/grauphel/pull/66 Resolves: https://github.com/cweiske/grauphel/issues/57
Diffstat (limited to 'templates/gui-database.php')
-rw-r--r--templates/gui-database.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/gui-database.php b/templates/gui-database.php
index 95c70d6..dd3c713 100644
--- a/templates/gui-database.php
+++ b/templates/gui-database.php
@@ -1,9 +1,9 @@
-<link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<link rel="stylesheet" href="<?php p(OC::$server->getURLGenerator()->linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
<?php /** @var $l OC_L10N */ ?>
<?php $_['appNavigation']->printPage(); ?>
-<script type="text/javascript" src="<?php p(OCP\Util::linkTo('grauphel','js/grauphel.js')); ?>"></script>
+<script type="text/javascript" src="<?php p(OC::$server->getURLGenerator()->linkTo('grauphel','js/grauphel.js')); ?>"></script>
<div id="app-content" class="content">
<div id="searchresults" class="hidden"></div>
@@ -31,7 +31,7 @@
<p>
To reset the database, enter your user name and click "reset database":
</p>
- <form method="POST" action="<?php p(OCP\Util::linkToRoute('grauphel.gui.databaseReset')); ?>">
+ <form method="POST" action="<?php p(OC::$server->getURLGenerator()->linkToRoute('grauphel.gui.databaseReset')); ?>">
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>"/>
<p>
<label>Username: <input type="text" name="username" value="" autocomplete="off" /></label>