X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcontent.php;h=b6fad9e22770882d04769d3bfc7a343f40653ceb;hb=6957069fb7d12fa4c5b1d8cb6be2718cf47e70c0;hp=43f3fc2ba686e9acfb39d119c114262a4700a95c;hpb=4ebebe96fee1ea3dda219fa7049e6d14a142aa19;p=friendica.git diff --git a/mod/content.php b/mod/content.php index 43f3fc2ba6..b6fad9e227 100644 --- a/mod/content.php +++ b/mod/content.php @@ -15,6 +15,8 @@ // fast - e.g. one or two milliseconds to fetch parent items for the current content, // and 10-20 milliseconds to fetch all the child items. +use Friendica\App; +use Friendica\Core\System; function content_content(App $a, $update = 0) { @@ -117,7 +119,7 @@ function content_content(App $a, $update = 0) { if($update) killme(); notice( t('No such group') . EOL ); - goaway(App::get_baseurl(true) . '/network'); + goaway(System::baseUrl(true) . '/network'); // NOTREACHED } @@ -197,7 +199,7 @@ function content_content(App $a, $update = 0) { } if($conv) { - $myurl = App::get_baseurl() . '/profile/'. $a->user['nickname']; + $myurl = System::baseUrl() . '/profile/'. $a->user['nickname']; $myurl = substr($myurl,strpos($myurl,'://')+3); $myurl = str_replace('www.','',$myurl); $diasp_url = str_replace('/profile/','/u/',$myurl); @@ -509,8 +511,8 @@ function render_content(App $a, $items, $mode, $update, $preview = false) { 'like' => '', 'dislike' => '', 'comment' => '', - //'conv' => (($preview) ? '' : array('href'=> App::get_baseurl($ssl_state) . '/display/' . $nickname . '/' . $item['id'], 'title'=> t('View in context'))), - 'conv' => (($preview) ? '' : array('href'=> App::get_baseurl($ssl_state).'/display/'.$item['guid'], 'title'=> t('View in context'))), + //'conv' => (($preview) ? '' : array('href'=> System::baseUrl($ssl_state) . '/display/' . $nickname . '/' . $item['id'], 'title'=> t('View in context'))), + 'conv' => (($preview) ? '' : array('href'=> System::baseUrl($ssl_state).'/display/'.$item['guid'], 'title'=> t('View in context'))), 'previewing' => $previewing, 'wait' => t('Please wait'), ); @@ -743,7 +745,7 @@ function render_content(App $a, $items, $mode, $update, $preview = false) { } if (local_user() && link_compare($a->contact['url'],$item['author-link'])) { - $edpost = array(App::get_baseurl($ssl_state)."/editpost/".$item['id'], t("Edit")); + $edpost = array(System::baseUrl($ssl_state)."/editpost/".$item['id'], t("Edit")); } else { $edpost = false; }