]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #1808 using correct message function in profile actions
authorCash Costello <cash.costello@gmail.com>
Fri, 27 Jan 2012 12:37:03 +0000 (07:37 -0500)
committerCash Costello <cash.costello@gmail.com>
Fri, 27 Jan 2012 12:37:03 +0000 (07:37 -0500)
actions/avatar/crop.php
actions/profile/fields/add.php
actions/profile/fields/delete.php
actions/profile/fields/reorder.php

index 6d71b6f064ebc9da1d5b51866e051edb9432016a..f2b812c4f3db0d9b729d5c571338d4f080884093 100644 (file)
@@ -46,7 +46,7 @@ foreach ($icon_sizes as $name => $size_info) {
                        $file->delete();
                }
 
-               system_message(elgg_echo('avatar:resize:fail'));
+               register_error(elgg_echo('avatar:resize:fail'));
                forward(REFERER);
        }
 }
index b35df15494b967eddc40a7cc1852b218f3cf3ab3..fce7830928160466db2bdeb4fde274f397022798 100644 (file)
@@ -2,7 +2,6 @@
 /**
  * Elgg profile plugin edit default profile action
  *
- * @package ElggProfile
  */
 
 $label = get_input('label');
index 26ab48cba2f7bde2456680e2cab1c6a70598da54..9879feb3f2de9bdc6aab66aa0b8f176f91c3bd7f 100644 (file)
@@ -2,7 +2,6 @@
 /**
  * Elgg profile plugin edit default profile action removal
  *
- * @package ElggProfile
  */
 
 $id = get_input('id');
index dd7a682a6bb3057042afe9f6d94bfb0ffae21b76..27c716749b731e62e19a1acc5c2135d0af7fd6a4 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * Elgg profile plugin reorder fields
  *
- * @package ElggProfile
  */
 
 $ordering = get_input('fieldorder');
 
 $result = elgg_save_config('profile_custom_fields', $ordering);
 
-exit;
\ No newline at end of file
+// called by ajax so we exit
+exit;