diff options
author | friendica <info@friendica.com> | 2012-06-12 20:46:30 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-12 20:46:30 -0700 |
commit | 920ea2e1c759b96bbcad246422b33d7f2c8fc552 (patch) | |
tree | 2286c33dbccab5d0ea3ede5999f8ec20226374e0 /mod/profile.php | |
parent | 832d9eeaaf7c439f3f8802d35e0e4a40509bddf5 (diff) | |
download | volse-hubzilla-920ea2e1c759b96bbcad246422b33d7f2c8fc552.tar.gz volse-hubzilla-920ea2e1c759b96bbcad246422b33d7f2c8fc552.tar.bz2 volse-hubzilla-920ea2e1c759b96bbcad246422b33d7f2c8fc552.zip |
archive widget
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/profile.php b/mod/profile.php index 2ac8fe586..24e03d6ea 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -94,6 +94,8 @@ function profile_content(&$a, $update = 0) { require_once('include/security.php'); require_once('include/conversation.php'); require_once('include/acl_selectors.php'); + require_once('include/items.php'); + $groups = array(); $tab = 'posts'; @@ -168,6 +170,7 @@ function profile_content(&$a, $update = 0) { $celeb = ((($a->profile['page-flags'] == PAGE_SOAPBOX) || ($a->profile['page-flags'] == PAGE_COMMUNITY)) ? true : false); + $a->page['aside'] .= posted_date_widget($a->get_baseurl(true) . '/profile/' . $a->profile['nickname'],$a->profile['profile_uid'],true); $a->page['aside'] .= categories_widget($a->get_baseurl(true) . '/profile/' . $a->profile['nickname'],(x($category) ? xmlify($category) : '')); if(can_write_wall($a,$a->profile['profile_uid'])) { @@ -218,10 +221,10 @@ function profile_content(&$a, $update = 0) { } if($datequery) { - $sql_extra2 .= protect_sprintf(sprintf(" AND item.created <= '%s' ", dbesc(datetime_convert('','',$datequery)))); + $sql_extra2 .= protect_sprintf(sprintf(" AND item.created <= '%s' ", dbesc(datetime_convert(date_default_timezone_get(),'',$datequery)))); } if($datequery2) { - $sql_extra2 .= protect_sprintf(sprintf(" AND item.created >= '%s' ", dbesc(datetime_convert('','',$datequery2)))); + $sql_extra2 .= protect_sprintf(sprintf(" AND item.created >= '%s' ", dbesc(datetime_convert(date_default_timezone_get(),'',$datequery2)))); } |