aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-12 16:43:59 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-12 16:43:59 -0700
commite0e2a032cfd5769f486b4b2abe58a54144b509c0 (patch)
tree27ba338ff9e3c70ac99dc0ee5f86a212b8376a9c /mod/profile.php
parentb0f8cd5fe684d5c03419838c2859a11ea6d6f8a0 (diff)
downloadvolse-hubzilla-e0e2a032cfd5769f486b4b2abe58a54144b509c0.tar.gz
volse-hubzilla-e0e2a032cfd5769f486b4b2abe58a54144b509c0.tar.bz2
volse-hubzilla-e0e2a032cfd5769f486b4b2abe58a54144b509c0.zip
mongo commit
Diffstat (limited to 'mod/profile.php')
-rw-r--r--mod/profile.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/mod/profile.php b/mod/profile.php
index 45bac146e..39d1b7c6a 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -98,6 +98,7 @@ function profile_content(&$a) {
require_once("include/bbcode.php");
require_once('include/security.php');
+ $a->page['htmlhead'] .= '<script type="text/javascript" src="include/jquery.js" ></script>';
$groups = array();
$tab = 'posts';
@@ -143,8 +144,6 @@ function profile_content(&$a) {
}
-dbg(2);
-
// TODO
// Alter registration and settings
// and profile to update contact table when names and photos change.
@@ -216,11 +215,10 @@ dbg(2);
$tpl = file_get_contents('view/wall_item.tpl');
if(count($r)) {
- for($x = 0; $x < count($r); $x ++) {
- $rr = $r[$x];
+ foreach($r as $rr) {
$comment = '';
if(can_write_wall($a,$a->profile['profile_uid'])) {
- if((($x + 1) < count($r)) && ($r[$x+1]['parent'] != $rr['parent'])) {
+ if($rr['last-child']) {
$comment = replace_macros($template,array(
'$id' => $rr['item_id'],
'$parent' => $rr['parent'],