aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-07 16:20:52 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-07 16:20:52 +0000
commit5a3f379a5ac398e31befa7d747c5d105d87cd4a3 (patch)
tree07f48c8fe36bf4e382358626cbea0334c529def0 /mod/profile
parent6e2444215584ab49313bb244199e85be7af0bb80 (diff)
downloadelgg-5a3f379a5ac398e31befa7d747c5d105d87cd4a3.tar.gz
elgg-5a3f379a5ac398e31befa7d747c5d105d87cd4a3.tar.bz2
Fixed editable profile fields.
git-svn-id: http://code.elgg.org/elgg/trunk@5654 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/start.php1
-rw-r--r--mod/profile/views/default/profile/editdefaultprofileitems.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index e08243818..4481b012b 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -296,5 +296,6 @@ register_action("profile/editdefault",false,$CONFIG->pluginspath . "profile/acti
register_action("profile/editdefault/delete",false,$CONFIG->pluginspath . "profile/actions/deletedefaultprofileitem.php", true);
register_action("profile/editdefault/reset",false,$CONFIG->pluginspath . "profile/actions/resetdefaultprofile.php", true);
register_action("profile/editdefault/reorder",false,$CONFIG->pluginspath . "profile/actions/reorder.php", true);
+register_action("profile/editdefault/editfield",false,$CONFIG->pluginspath . "profile/actions/editfield.php", true);
register_action("profile/addcomment",false,$CONFIG->pluginspath . "profile/actions/addcomment.php");
register_action("profile/deletecomment",false,$CONFIG->pluginspath . "profile/actions/deletecomment.php"); \ No newline at end of file
diff --git a/mod/profile/views/default/profile/editdefaultprofileitems.php b/mod/profile/views/default/profile/editdefaultprofileitems.php
index 17d1f4f8f..8a99b08dc 100644
--- a/mod/profile/views/default/profile/editdefaultprofileitems.php
+++ b/mod/profile/views/default/profile/editdefaultprofileitems.php
@@ -26,9 +26,9 @@ $(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);
foreach($vars['items'] as $item) {
- $url = elgg_add_action_tokens_to_url("{$vars['url']}action/profile/editdefault/editfield");
echo <<< END
<script language="javascript" type="text/javascript">