aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 16:21:53 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 16:21:53 +0000
commite231b7079e97f4c4a7d48670a63176f3b62158b9 (patch)
treec55838df508cb8283d4e51dfdd1b3c35b6e86bdc /mod
parent4c08da6c2ec0859c0bcccb9296cedb985eccce4d (diff)
downloadelgg-e231b7079e97f4c4a7d48670a63176f3b62158b9.tar.gz
elgg-e231b7079e97f4c4a7d48670a63176f3b62158b9.tar.bz2
You can now edit your profile again ..
git-svn-id: https://code.elgg.org/elgg/trunk@700 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/profile/languages/en.php1
-rw-r--r--mod/profile/views/default/profile/edit.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/mod/profile/languages/en.php b/mod/profile/languages/en.php
index 6227f6657..e83e22cba 100644
--- a/mod/profile/languages/en.php
+++ b/mod/profile/languages/en.php
@@ -42,6 +42,7 @@
* Error messages
*/
+ 'profile:noaccess' => "You do not have permission to edit this profile.",
'profile:notfound' => "Sorry; we could not find the specified profile.",
'profile:cantedit' => "Sorry; you do not have permission to edit this profile.",
'profile:icon:notfound' => "Sorry; there was a problem uploading your profile icon.",
diff --git a/mod/profile/views/default/profile/edit.php b/mod/profile/views/default/profile/edit.php
index 685793bff..5ccfd9ec4 100644
--- a/mod/profile/views/default/profile/edit.php
+++ b/mod/profile/views/default/profile/edit.php
@@ -20,8 +20,8 @@
<?php
//var_export($vars['profile']);
- if (is_array($vars['profile']) && sizeof($vars['profile']) > 0)
- foreach($vars['profile'] as $shortname => $valtype) {
+ if (is_array($vars['config']->profile) && sizeof($vars['config']->profile) > 0)
+ foreach($vars['config']->profile as $shortname => $valtype) {
?>