aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/profile/actions/deletedefaultprofileitem.php2
-rw-r--r--mod/profile/views/default/profile/editdefaultprofileitems.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/profile/actions/deletedefaultprofileitem.php b/mod/profile/actions/deletedefaultprofileitem.php
index 7d431020d..e54aa026d 100644
--- a/mod/profile/actions/deletedefaultprofileitem.php
+++ b/mod/profile/actions/deletedefaultprofileitem.php
@@ -13,7 +13,7 @@ global $CONFIG;
admin_gatekeeper();
-$id = (int)get_input('id');
+$id = get_input('id');
$fieldlist = get_plugin_setting('user_defined_fields', 'profile');
if (!$fieldlist) {
diff --git a/mod/profile/views/default/profile/editdefaultprofileitems.php b/mod/profile/views/default/profile/editdefaultprofileitems.php
index 8a99b08dc..403943d23 100644
--- a/mod/profile/views/default/profile/editdefaultprofileitems.php
+++ b/mod/profile/views/default/profile/editdefaultprofileitems.php
@@ -26,7 +26,7 @@ $(document).ready(function() {
$save = elgg_echo('save');
$cancel = elgg_echo('cancel');
- $url = elgg_add_action_tokens_to_url("{$vars['url']}action/profile/editdefault/editfield", FALSE);
+ $edit_url = elgg_add_action_tokens_to_url("{$vars['url']}action/profile/editdefault/editfield", FALSE);
foreach($vars['items'] as $item) {
echo <<< END
@@ -34,7 +34,7 @@ $(document).ready(function() {
<script language="javascript" type="text/javascript">
$(function() {
- $(".{$item->shortname}_editable").editable("$url", {
+ $(".{$item->shortname}_editable").editable("$edit_url ", {
type : 'text',
submitdata: { _method: "post", 'field': '{$item->shortname}' },
onblur: 'submit',