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 - + 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); } /**