From 2f3c0a6d804609aa908b8e938943e3ab8679b0a9 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 20 Mar 2012 00:30:53 +0100 Subject: [PATCH] wrong defaultValue definition in OC.AppConfig.getValue done --- core/ajax/appconfig.php | 2 +- core/js/config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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});