]> source.dussan.org Git - nextcloud-server.git/commitdiff
add OCP\Config:deleteSystemValue
authorMorris Jobke <morris.jobke@gmail.com>
Mon, 2 Jun 2014 16:31:43 +0000 (18:31 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Mon, 2 Jun 2014 16:31:43 +0000 (18:31 +0200)
apps/files/appinfo/update.php
lib/public/config.php

index 5f054f266bc534023daf203e76134934d3cc47ee..de635e5ce6b93b3dfadd1cda033192ee8404629e 100644 (file)
@@ -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::deleteKey('allowZipDownload');
-       \OC_Config::deleteKey('maxZipInputSize');
+if (version_compare(\OCP\Config::getSystemValue('version', '0.0.0'), '7.0.0', '<')) {
+       \OCP\Config::deleteSystemValue('allowZipDownload');
+       \OCP\Config::deleteSystemValue('maxZipInputSize');
 }
index 8e3791b449b124ba6920c23787310ba04df35fda..ea3e0c1372a52242f1e0a390cf26f99c6f33f842 100644 (file)
@@ -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