Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
b01c59b2
Commit
b01c59b2
authored
10 years ago
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
use old methods and redirect in deprecated methods
parent
d6da627e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/private/allconfig.php
+2
-2
2 additions, 2 deletions
lib/private/allconfig.php
lib/public/config.php
+2
-2
2 additions, 2 deletions
lib/public/config.php
with
4 additions
and
4 deletions
lib/private/allconfig.php
+
2
−
2
View file @
b01c59b2
...
@@ -106,7 +106,7 @@ class AllConfig implements \OCP\IConfig {
...
@@ -106,7 +106,7 @@ class AllConfig implements \OCP\IConfig {
* @param string $value the value that you want to store
* @param string $value the value that you want to store
*/
*/
public
function
setUserValue
(
$userId
,
$appName
,
$key
,
$value
)
{
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 {
...
@@ -119,7 +119,7 @@ class AllConfig implements \OCP\IConfig {
* @return string
* @return string
*/
*/
public
function
getUserValue
(
$userId
,
$appName
,
$key
,
$default
=
''
)
{
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
);
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
lib/public/config.php
+
2
−
2
View file @
b01c59b2
...
@@ -131,7 +131,7 @@ class Config {
...
@@ -131,7 +131,7 @@ class Config {
* not exist the default value will be returned
* not exist the default value will be returned
*/
*/
public
static
function
getUserValue
(
$user
,
$app
,
$key
,
$default
=
null
)
{
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 {
...
@@ -148,7 +148,7 @@ class Config {
*/
*/
public
static
function
setUserValue
(
$user
,
$app
,
$key
,
$value
)
{
public
static
function
setUserValue
(
$user
,
$app
,
$key
,
$value
)
{
try
{
try
{
\OC
_Preferences
::
set
Value
(
$user
,
$app
,
$key
,
$value
);
\OC
::
$server
->
getConfig
()
->
setUser
Value
(
$user
,
$app
,
$key
,
$value
);
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
return
false
;
return
false
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment