diff --git a/core/ajax/appconfig.php b/core/ajax/appconfig.php index 50984ac32b..f815d71063 100644 --- a/core/ajax/appconfig.php +++ b/core/ajax/appconfig.php @@ -11,7 +11,7 @@ $action=isset($_POST['action'])?$_POST['action']:$_GET['action']; $result=false; switch($action){ case 'getValue': - $result=OC_Appconfig::getValue($_GET['app'],$_GET['key'],$_GET['default']); + $result=OC_Appconfig::getValue($_GET['app'],$_GET['key'],$_GET['defaultValue']); break; case 'setValue': $result=OC_Appconfig::setValue($_POST['app'],$_POST['key'],$_POST['value']); diff --git a/core/js/config.js b/core/js/config.js index 500fe072a6..11168f1c48 100644 --- a/core/js/config.js +++ b/core/js/config.js @@ -31,7 +31,7 @@ OC.AppConfig={ callback=defaultValue; defaultValue=null; } - OC.AppConfig.getCall('getValue',{app:app,key:key,default:defaultValue},callback); + OC.AppConfig.getCall('getValue',{app:app,key:key,defaultValue:defaultValue},callback); }, setValue:function(app,key,value){ OC.AppConfig.postCall('setValue',{app:app,key:key,value:value});