]> git.mxchange.org Git - friendica.git/blobdiff - mod/common.php
CleanUp Cache namespace
[friendica.git] / mod / common.php
index 4f033de14e8a5e8a7d5a1dedd7cb5c5594f4cf5b..6ad531d0712727cf52c70aec10ca4581a62ead43 100644 (file)
@@ -9,6 +9,7 @@ use Friendica\Content\Pager;
 use Friendica\Core\L10n;
 use Friendica\Core\Renderer;
 use Friendica\Database\DBA;
+use Friendica\DI;
 use Friendica\Model;
 use Friendica\Module;
 use Friendica\Util\Proxy as ProxyUtils;
@@ -40,7 +41,7 @@ function common_content(App $a)
                $contact = DBA::selectFirst('contact', ['name', 'url', 'photo', 'uid', 'id'], ['id' => $cid, 'uid' => $uid]);
 
                if (DBA::isResult($contact)) {
-                       $a->page['aside'] = "";
+                       DI::page()['aside'] = "";
                        Model\Profile::load($a, "", 0, Model\Contact::getDetailsByURL($contact["url"]));
                }
        } else {
@@ -53,10 +54,10 @@ function common_content(App $a)
                                'url'    => 'contact/' . $cid
                        ]);
 
-                       if (empty($a->page['aside'])) {
-                               $a->page['aside'] = '';
+                       if (empty(DI::page()['aside'])) {
+                               DI::page()['aside'] = '';
                        }
-                       $a->page['aside'] .= $vcard_widget;
+                       DI::page()['aside'] .= $vcard_widget;
                }
        }
 
@@ -91,7 +92,7 @@ function common_content(App $a)
                return $o;
        }
 
-       $pager = new Pager($a->query_string);
+       $pager = new Pager(DI::args()->getQueryString());
 
        if ($cid) {
                $common_friends = Model\GContact::commonFriends($uid, $cid, $pager->getStart(), $pager->getItemsPerPage());