]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile.php
quattro: in post display page, scroll to and flash selected comment
[friendica.git] / mod / profile.php
index 3a77faf19a3e834a6d6fd5ba40aeccb6fc64ab6c..24e03d6eac25589bf2bab80e391dfd508d8d6225 100644 (file)
@@ -67,7 +67,7 @@ function profile_init(&$a) {
 
 function profile_content(&$a, $update = 0) {
 
-       $category = datequery = $datequery2 = '';
+       $category = $datequery = $datequery2 = '';
 
        if($a->argc > 2) {
                for($x = 2; $x < $a->argc; $x ++) {
@@ -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))));
                }