From 71a766a629db07d4fa0d921e6191bcc91136a149 Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Wed, 4 Aug 2021 10:49:55 +0200 Subject: [PATCH 1/2] Update deprecated OCP\User This was dropped in Nextcloud 22 Closes #36 --- lib/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config.php b/lib/config.php index 086b8fe..4f0474d 100644 --- a/lib/config.php +++ b/lib/config.php @@ -25,7 +25,7 @@ class Config * @return string retrieved value or default */ public static function get($key, $default) { - return \OC::$server->getConfig()->getUserValue(\OCP\User::getUser(), 'epubreader', $key, $default); + return \OC::$server->getConfig()->getUserValue(\OC_User::getUser(), 'epubreader', $key, $default); } /** @@ -36,7 +36,7 @@ class Config * @return bool success */ public static function set($key, $value) { - return \OC::$server->getConfig()->setUserValue(\OCP\User::getUser(), 'epubreader', $key, $value); + return \OC::$server->getConfig()->setUserValue(\OC_User::getUser(), 'epubreader', $key, $value); } /** From 71032dd376ba44c06421102bef28414a56155b6c Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Fri, 6 Aug 2021 10:36:41 +0200 Subject: [PATCH 2/2] Bump max supported Nextcloud version to 22 --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 6f05fb7..82ad4d5 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -46,6 +46,6 @@ See [README] for more exhaustive information on features and potential misfeatur https://github.com/e-alfred/epubreader/blob/master/screenshots/photo_2017-03-15_17-22-00.jpg?raw=true https://github.com/e-alfred/epubreader/blob/master/screenshots/photo_2017-03-15_17-22-02.jpg?raw=true - +