From: Josh Panter Date: Fri, 5 Oct 2018 21:19:05 +0000 (+0200) Subject: Do not use OCP\Util anymore - API not avaiable in Nextcloud 14. X-Git-Tag: v0.7.0~11 X-Git-Url: https://git.cweiske.de/grauphel.git/commitdiff_plain/4c85b6387c7612e40ad94960225e55533ae85011 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 --- diff --git a/appinfo/app.php b/appinfo/app.php index afbc787..1fb5551 100755 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -3,8 +3,8 @@ array( 'id' => 'grauphel', 'order' => 2342, - 'href' => \OCP\Util::linkToRoute('grauphel.gui.index'), - 'icon' => \OCP\Util::imagePath('grauphel', 'app.svg'), + 'href' => \OC::$server->getURLGenerator()->linkToRoute('grauphel.gui.index'), + 'icon' => \OC::$server->getURLGenerator()->imagePath('grauphel', 'app.svg'), 'name' => 'Tomboy notes' ) ); diff --git a/templates/appnavigation.php b/templates/appnavigation.php index 04eb86c..7d51049 100644 --- a/templates/appnavigation.php +++ b/templates/appnavigation.php @@ -11,10 +11,10 @@ diff --git a/templates/error.php b/templates/error.php index 9ea4c33..6ca821b 100644 --- a/templates/error.php +++ b/templates/error.php @@ -1,4 +1,4 @@ - +
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 @@ - + printPage(); ?> - +
@@ -31,7 +31,7 @@

To reset the database, enter your user name and click "reset database":

-
+

diff --git a/templates/gui-note.php b/templates/gui-note.php index 8061a50..a182f5f 100644 --- a/templates/gui-note.php +++ b/templates/gui-note.php @@ -1,9 +1,9 @@ - + printPage(); ?> - +

diff --git a/templates/index.php b/templates/index.php index 6eb2905..4edb7d9 100644 --- a/templates/index.php +++ b/templates/index.php @@ -1,4 +1,4 @@ - + printPage(); ?> diff --git a/templates/indexStats.php b/templates/indexStats.php index a238c8c..74c1abb 100644 --- a/templates/indexStats.php +++ b/templates/indexStats.php @@ -1,9 +1,9 @@

Statistics

-
Number of notes
+
Number of notes
-
Number of registered apps
+
Number of registered apps
Sync revision
diff --git a/templates/oauthAuthorize.php b/templates/oauthAuthorize.php index 46a1918..5c7cf4a 100644 --- a/templates/oauthAuthorize.php +++ b/templates/oauthAuthorize.php @@ -1,4 +1,4 @@ - + diff --git a/templates/tag.php b/templates/tag.php index 7d5cab1..4a9501c 100644 --- a/templates/tag.php +++ b/templates/tag.php @@ -1,4 +1,4 @@ - + printPage(); ?> @@ -19,7 +19,7 @@ - + diff --git a/templates/tokens.php b/templates/tokens.php index c79ba7d..3e1f54b 100644 --- a/templates/tokens.php +++ b/templates/tokens.php @@ -1,9 +1,9 @@ - + printPage(); ?> - +
@@ -28,7 +28,7 @@ getNiceName($token->client)); ?> lastuse)); ?> - +