X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofile.php;h=c2b4fe2489d6cde7195d3efe0e2ac5d994b010e6;hb=d0dfcc71a82ac423db68a12fd2eaf6d13cb18e1f;hp=7a11e9bc6b1fe80a261b5328ac77400afecf8bc8;hpb=1f58bcc114928a5a3cd97bd0de34a5aa7d585931;p=friendica.git
diff --git a/mod/profile.php b/mod/profile.php
index 7a11e9bc6b..c2b4fe2489 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -1,6 +1,7 @@
query_string, LOGGER_DEBUG);
@@ -58,16 +59,16 @@ function profile_init(App $a) {
}
$a->page['htmlhead'] .= '' . "\r\n" ;
- $a->page['htmlhead'] .= '' . "\r\n" ;
+ $a->page['htmlhead'] .= '' . "\r\n" ;
$uri = urlencode('acct:' . $a->profile['nickname'] . '@' . $a->get_hostname() . (($a->path) ? '/' . $a->path : ''));
- $a->page['htmlhead'] .= '' . "\r\n";
- header('Link: <' . App::get_baseurl() . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"', false);
+ $a->page['htmlhead'] .= '' . "\r\n";
+ header('Link: <' . System::baseUrl() . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"', false);
$dfrn_pages = array('request', 'confirm', 'notify', 'poll');
foreach ($dfrn_pages as $dfrn) {
- $a->page['htmlhead'] .= "\r\n";
+ $a->page['htmlhead'] .= "\r\n";
}
- $a->page['htmlhead'] .= "\r\n";
+ $a->page['htmlhead'] .= "\r\n";
}
@@ -179,8 +180,8 @@ function profile_content(App $a, $update = 0) {
$commpage = (($a->profile['page-flags'] == PAGE_COMMUNITY) ? true : false);
$commvisitor = (($commpage && $remote_contact == true) ? true : false);
- $a->page['aside'] .= posted_date_widget(App::get_baseurl(true) . '/profile/' . $a->profile['nickname'],$a->profile['profile_uid'],true);
- $a->page['aside'] .= categories_widget(App::get_baseurl(true) . '/profile/' . $a->profile['nickname'],(x($category) ? xmlify($category) : ''));
+ $a->page['aside'] .= posted_date_widget(System::baseUrl(true) . '/profile/' . $a->profile['nickname'],$a->profile['profile_uid'],true);
+ $a->page['aside'] .= categories_widget(System::baseUrl(true) . '/profile/' . $a->profile['nickname'],(x($category) ? xmlify($category) : ''));
if (can_write_wall($a,$a->profile['profile_uid'])) {
@@ -333,11 +334,12 @@ function profile_content(App $a, $update = 0) {
}
- if($is_owner) {
- $r = q("UPDATE `item` SET `unseen` = 0
- WHERE `wall` = 1 AND `unseen` = 1 AND `uid` = %d",
- intval(local_user())
- );
+ if ($is_owner) {
+ $unseen = dba::exists('item', array('wall' => true, 'unseen' => true, 'uid' => local_user()));
+ if ($unseen) {
+ $r = dba::update('item', array('unseen' => false),
+ array('wall' => true, 'unseen' => true, 'uid' => local_user()));
+ }
}
$o .= conversation($a, $items, 'profile', $update);