parent
c704a85a67
commit
71a766a629
@ -25,7 +25,7 @@ class Config
|
|||||||
* @return string retrieved value or default
|
* @return string retrieved value or default
|
||||||
*/
|
*/
|
||||||
public static function get($key, $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
|
* @return bool success
|
||||||
*/
|
*/
|
||||||
public static function set($key, $value) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user