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
9a679864
Commit
9a679864
authored
10 years ago
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
add OCP\Config:deleteSystemValue
parent
079b709f
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
apps/files/appinfo/update.php
+3
-3
3 additions, 3 deletions
apps/files/appinfo/update.php
lib/public/config.php
+10
-0
10 additions, 0 deletions
lib/public/config.php
with
13 additions
and
3 deletions
apps/files/appinfo/update.php
+
3
−
3
View file @
9a679864
...
...
@@ -2,7 +2,7 @@
// this drops the keys below, because they aren't needed anymore
// core related
if
(
version_compare
(
\OC
_
Config
::
getValue
(
'version'
,
'0.0.0'
),
'7.0.0'
,
'<'
))
{
\OC
_
Config
::
delete
Key
(
'allowZipDownload'
);
\OC
_
Config
::
delete
Key
(
'maxZipInputSize'
);
if
(
version_compare
(
\OC
P\
Config
::
get
System
Value
(
'version'
,
'0.0.0'
),
'7.0.0'
,
'<'
))
{
\OC
P\
Config
::
delete
SystemValue
(
'allowZipDownload'
);
\OC
P\
Config
::
delete
SystemValue
(
'maxZipInputSize'
);
}
This diff is collapsed.
Click to expand it.
lib/public/config.php
+
10
−
0
View file @
9a679864
...
...
@@ -70,6 +70,16 @@ class Config {
return
true
;
}
/**
* Deletes a value from config.php
* @param string $key key
*
* This function deletes the value from config.php.
*/
public
static
function
deleteSystemValue
(
$key
)
{
return
\OC_Config
::
deleteKey
(
$key
);
}
/**
* Gets the config value
* @param string $app app
...
...
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