wrong defaultValue definition in OC.AppConfig.getValue
done
This commit is contained in:
parent
bd262eaac0
commit
2f3c0a6d80
2 changed files with 2 additions and 2 deletions
|
@ -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']);
|
||||
|
|
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue