From ae88842fce124942780875fef7d0158b8c87d9aa Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 7 Apr 2010 16:44:37 +0000 Subject: Removed windows line endings. git-svn-id: http://code.elgg.org/elgg/trunk@5657 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/actions/addcomment.php | 94 +++++++------- mod/profile/actions/deletecomment.php | 56 ++++----- mod/profile/actions/editfield.php | 40 +++--- mod/profile/actions/reorder.php | 32 ++--- .../default/profile/commentwall/commentwall.php | 42 +++---- .../profile/commentwall/commentwall_content.php | 64 +++++----- .../default/profile/commentwall/commentwalladd.php | 36 +++--- .../default/profile/editdefaultprofileitems.php | 136 ++++++++++----------- .../profile/profile_contents/commentwall.php | 24 ++-- 9 files changed, 262 insertions(+), 262 deletions(-) diff --git a/mod/profile/actions/addcomment.php b/mod/profile/actions/addcomment.php index b5c5e0708..5850efe25 100644 --- a/mod/profile/actions/addcomment.php +++ b/mod/profile/actions/addcomment.php @@ -1,48 +1,48 @@ -annotate('commentwall',$message_content,$user->access_id, $_SESSION['user']->getGUID())) { - - global $CONFIG; - - if ($user->getGUID() != $_SESSION['user']->getGUID()) - notify_user($user->getGUID(), $_SESSION['user']->getGUID(), elgg_echo('profile:comment:subject'), - sprintf( - elgg_echo('profile:comment:body'), - $_SESSION['user']->name, - $message_content, - $CONFIG->wwwroot . "pg/profile/" . $user->username, - $_SESSION['user']->name, - $_SESSION['user']->getURL() - ) - ); - - system_message(elgg_echo("profile:commentwall:posted")); - // add to river - add_to_river('river/object/profile/commentwall/create','commentwall',$_SESSION['user']->guid,$user->guid); - - } else { - register_error(elgg_echo("profile:commentwall:failure")); - } - -} else { - register_error(elgg_echo("profile:commentwall:blank")); -} - -// Forward back to the messageboard +annotate('commentwall',$message_content,$user->access_id, $_SESSION['user']->getGUID())) { + + global $CONFIG; + + if ($user->getGUID() != $_SESSION['user']->getGUID()) + notify_user($user->getGUID(), $_SESSION['user']->getGUID(), elgg_echo('profile:comment:subject'), + sprintf( + elgg_echo('profile:comment:body'), + $_SESSION['user']->name, + $message_content, + $CONFIG->wwwroot . "pg/profile/" . $user->username, + $_SESSION['user']->name, + $_SESSION['user']->getURL() + ) + ); + + system_message(elgg_echo("profile:commentwall:posted")); + // add to river + add_to_river('river/object/profile/commentwall/create','commentwall',$_SESSION['user']->guid,$user->guid); + + } else { + register_error(elgg_echo("profile:commentwall:failure")); + } + +} else { + register_error(elgg_echo("profile:commentwall:blank")); +} + +// Forward back to the messageboard forward($_SERVER['HTTP_REFERER']); \ No newline at end of file diff --git a/mod/profile/actions/deletecomment.php b/mod/profile/actions/deletecomment.php index 48399af4a..0a104eabe 100644 --- a/mod/profile/actions/deletecomment.php +++ b/mod/profile/actions/deletecomment.php @@ -1,29 +1,29 @@ -entity_guid); - //check to make sure the current user can actually edit the commentwall - if ($message->canEdit()) { - //delete the comment - $message->delete(); - //display message - system_message(elgg_echo("profile:commentwall:deleted")); - forward($_SERVER['HTTP_REFERER']); - } - -} else { - system_message(elgg_echo("profile:commentwall:notdeleted")); -} - +entity_guid); + //check to make sure the current user can actually edit the commentwall + if ($message->canEdit()) { + //delete the comment + $message->delete(); + //display message + system_message(elgg_echo("profile:commentwall:deleted")); + forward($_SERVER['HTTP_REFERER']); + } + +} else { + system_message(elgg_echo("profile:commentwall:notdeleted")); +} + forward($_SERVER['HTTP_REFERER']); \ No newline at end of file diff --git a/mod/profile/actions/editfield.php b/mod/profile/actions/editfield.php index c26dfa4d9..5a0181a00 100644 --- a/mod/profile/actions/editfield.php +++ b/mod/profile/actions/editfield.php @@ -1,21 +1,21 @@ - - * @copyright Curverider Ltd 2008-2010 - * @link http://elgg.com/ - */ - -admin_gatekeeper(); - -$field = get_input('field'); -$text = get_input('value'); - -set_plugin_setting("admin_defined_profile_{$field}",$text,'profile'); - -echo $text; - + + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.com/ + */ + +admin_gatekeeper(); + +$field = get_input('field'); +$text = get_input('value'); + +set_plugin_setting("admin_defined_profile_{$field}",$text,'profile'); + +echo $text; + exit; \ No newline at end of file diff --git a/mod/profile/actions/reorder.php b/mod/profile/actions/reorder.php index a189b0513..2260ed5b7 100644 --- a/mod/profile/actions/reorder.php +++ b/mod/profile/actions/reorder.php @@ -1,17 +1,17 @@ - - * @copyright Curverider Ltd 2008-2010 - * @link http://elgg.com/ - */ - -admin_gatekeeper(); -$ordering = get_input('fieldorder'); -//if (!empty($ordering)) -$result = set_plugin_setting('user_defined_fields',$ordering,'profile'); - + + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.com/ + */ + +admin_gatekeeper(); +$ordering = get_input('fieldorder'); +//if (!empty($ordering)) +$result = set_plugin_setting('user_defined_fields',$ordering,'profile'); + exit; \ No newline at end of file diff --git a/mod/profile/views/default/profile/commentwall/commentwall.php b/mod/profile/views/default/profile/commentwall/commentwall.php index f693a3317..79869a454 100644 --- a/mod/profile/views/default/profile/commentwall/commentwall.php +++ b/mod/profile/views/default/profile/commentwall/commentwall.php @@ -1,22 +1,22 @@ - 0) { - - //start the div which will wrap all the message board contents - echo "
"; - - //loop through all annotations and display - foreach($vars['annotation'] as $content) { - echo elgg_view("profile/commentwall/commentwall_content", array('annotation' => $content)); - } - - //close the wrapper div - echo "
"; - -} else { - echo "

" . elgg_echo("profile:commentwall:none") . "

"; + 0) { + + //start the div which will wrap all the message board contents + echo "
"; + + //loop through all annotations and display + foreach($vars['annotation'] as $content) { + echo elgg_view("profile/commentwall/commentwall_content", array('annotation' => $content)); + } + + //close the wrapper div + echo "
"; + +} else { + echo "

" . elgg_echo("profile:commentwall:none") . "

"; } \ No newline at end of file diff --git a/mod/profile/views/default/profile/commentwall/commentwall_content.php b/mod/profile/views/default/profile/commentwall/commentwall_content.php index 1317ba62e..cacea117c 100644 --- a/mod/profile/views/default/profile/commentwall/commentwall_content.php +++ b/mod/profile/views/default/profile/commentwall/commentwall_content.php @@ -1,32 +1,32 @@ - -
- -
- get_entity($vars['annotation']->owner_guid), 'size' => 'tiny')); - ?> -
- -
- canEdit()) { - echo ""; - } //end of can edit if statement - ?> - -

- owner_guid)->name . " " . friendly_time($vars['annotation']->time_created); ?> -

- - parse_urls($vars['annotation']->value))); ?> -
-
+ +
+ +
+ get_entity($vars['annotation']->owner_guid), 'size' => 'tiny')); + ?> +
+ +
+ canEdit()) { + echo ""; + } //end of can edit if statement + ?> + +

+ owner_guid)->name . " " . friendly_time($vars['annotation']->time_created); ?> +

+ + parse_urls($vars['annotation']->value))); ?> +
+
diff --git a/mod/profile/views/default/profile/commentwall/commentwalladd.php b/mod/profile/views/default/profile/commentwall/commentwalladd.php index 084ffc400..f5bd1bdce 100644 --- a/mod/profile/views/default/profile/commentwall/commentwalladd.php +++ b/mod/profile/views/default/profile/commentwall/commentwalladd.php @@ -1,18 +1,18 @@ - -
-
- -
- - - - - - - -
-
+ +
+
+ +
+ + + + + + + +
+
diff --git a/mod/profile/views/default/profile/editdefaultprofileitems.php b/mod/profile/views/default/profile/editdefaultprofileitems.php index 403943d23..4cd5d68e9 100644 --- a/mod/profile/views/default/profile/editdefaultprofileitems.php +++ b/mod/profile/views/default/profile/editdefaultprofileitems.php @@ -1,68 +1,68 @@ - - - - -
- -
-
- - + + + + +
+ +
+
+ + diff --git a/mod/profile/views/default/profile/profile_contents/commentwall.php b/mod/profile/views/default/profile/profile_contents/commentwall.php index c13c16331..f3a2adb1c 100644 --- a/mod/profile/views/default/profile/profile_contents/commentwall.php +++ b/mod/profile/views/default/profile/profile_contents/commentwall.php @@ -1,13 +1,13 @@ - -
- $vars['comments'])); -?> + +
+ $vars['comments'])); +?>
\ No newline at end of file -- cgit v1.2.3