]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Profile.php
Use DI::baseUrl() for Search\Index.php
[friendica.git] / src / Module / Profile.php
index 0515d22e18913e309f5422b6064bd91684e1ceb5..8232282dfd56e5fe725c5cc2fbe7644cffbb7d1b 100644 (file)
@@ -120,7 +120,7 @@ class Profile extends BaseModule
                        $a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . System::baseUrl() . '/feed/' . self::$which . '/" title="' . L10n::t('%s\'s posts', $a->profile['username']) . '"/>' . "\n";
                        $a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . System::baseUrl() . '/feed/' . self::$which . '/comments" title="' . L10n::t('%s\'s comments', $a->profile['username']) . '"/>' . "\n";
                        $a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . System::baseUrl() . '/feed/' . self::$which . '/activity" title="' . L10n::t('%s\'s timeline', $a->profile['username']) . '"/>' . "\n";
-                       $uri = urlencode('acct:' . $a->profile['nickname'] . '@' . $a->getHostName() . ($a->getURLPath() ? '/' . $a->getURLPath() : ''));
+                       $uri = urlencode('acct:' . $a->profile['nickname'] . '@' . DI::baseUrl()->getHostname() . (DI::baseUrl()->getUrlPath() ? '/' . DI::baseUrl()->getUrlPath() : ''));
                        $a->page['htmlhead'] .= '<link rel="lrdd" type="application/xrd+xml" href="' . System::baseUrl() . '/xrd/?uri=' . $uri . '" />' . "\n";
                        header('Link: <' . System::baseUrl() . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"', false);
 
@@ -258,7 +258,7 @@ class Profile extends BaseModule
                                return '';
                        }
 
-                       $pager = new Pager($a->query_string);
+                       $pager = new Pager(DI::args()->getQueryString());
                } else {
                        $sql_post_table = "";
 
@@ -290,7 +290,7 @@ class Profile extends BaseModule
 
                        //  check if we serve a mobile device and get the user settings
                        //  accordingly
-                       if ($a->is_mobile) {
+                       if (DI::mode()->isMobile()) {
                                $itemspage_network = PConfig::get(local_user(), 'system', 'itemspage_mobile_network', 10);
                        } else {
                                $itemspage_network = PConfig::get(local_user(), 'system', 'itemspage_network', 20);
@@ -302,7 +302,7 @@ class Profile extends BaseModule
                                $itemspage_network = $a->force_max_items;
                        }
 
-                       $pager = new Pager($a->query_string, $itemspage_network);
+                       $pager = new Pager(DI::args()->getQueryString(), $itemspage_network);
 
                        $pager_sql = sprintf(" LIMIT %d, %d ", $pager->getStart(), $pager->getItemsPerPage());