Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
b01c59b2
Commit
b01c59b2
authored
Nov 27, 2014
by
Morris Jobke
Browse files
use old methods and redirect in deprecated methods
parent
d6da627e
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/private/allconfig.php
View file @
b01c59b2
...
...
@@ -106,7 +106,7 @@ class AllConfig implements \OCP\IConfig {
* @param string $value the value that you want to store
*/
public
function
setUserValue
(
$userId
,
$appName
,
$key
,
$value
)
{
\
OC
P\Config
::
set
User
Value
(
$userId
,
$appName
,
$key
,
$value
);
\
OC
_Preferences
::
setValue
(
$userId
,
$appName
,
$key
,
$value
);
}
/**
...
...
@@ -119,7 +119,7 @@ class AllConfig implements \OCP\IConfig {
* @return string
*/
public
function
getUserValue
(
$userId
,
$appName
,
$key
,
$default
=
''
)
{
return
\
OC
P\Config
::
get
User
Value
(
$userId
,
$appName
,
$key
,
$default
);
return
\
OC
_Preferences
::
getValue
(
$userId
,
$appName
,
$key
,
$default
);
}
/**
...
...
lib/public/config.php
View file @
b01c59b2
...
...
@@ -131,7 +131,7 @@ class Config {
* not exist the default value will be returned
*/
public
static
function
getUserValue
(
$user
,
$app
,
$key
,
$default
=
null
)
{
return
\
OC
_Preferences
::
get
Value
(
$user
,
$app
,
$key
,
$default
);
return
\
OC
::
$server
->
getConfig
()
->
getUser
Value
(
$user
,
$app
,
$key
,
$default
);
}
/**
...
...
@@ -148,7 +148,7 @@ class Config {
*/
public
static
function
setUserValue
(
$user
,
$app
,
$key
,
$value
)
{
try
{
\
OC
_Preferences
::
set
Value
(
$user
,
$app
,
$key
,
$value
);
\
OC
::
$server
->
getConfig
()
->
setUser
Value
(
$user
,
$app
,
$key
,
$value
);
}
catch
(
\
Exception
$e
)
{
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment