add OCP\Config:deleteSystemValue
This commit is contained in:
parent
079b709f28
commit
9a67986473
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
// this drops the keys below, because they aren't needed anymore
|
// this drops the keys below, because they aren't needed anymore
|
||||||
// core related
|
// core related
|
||||||
if (version_compare(\OC_Config::getValue('version', '0.0.0'), '7.0.0', '<')) {
|
if (version_compare(\OCP\Config::getSystemValue('version', '0.0.0'), '7.0.0', '<')) {
|
||||||
\OC_Config::deleteKey('allowZipDownload');
|
\OCP\Config::deleteSystemValue('allowZipDownload');
|
||||||
\OC_Config::deleteKey('maxZipInputSize');
|
\OCP\Config::deleteSystemValue('maxZipInputSize');
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,16 @@ class Config {
|
||||||
return true;
|
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
|
* Gets the config value
|
||||||
* @param string $app app
|
* @param string $app app
|
||||||
|
|
Loading…
Reference in New Issue