]> git.mxchange.org Git - friendica.git/blobdiff - mod/common.php
rename CSS attributes notify => notification
[friendica.git] / mod / common.php
index c66da0385092912ff12461f9074673949cc31ab6..d2e7baecae2bc4e0e200c51d9061002dcb96adb4 100644 (file)
@@ -6,7 +6,6 @@
 use Friendica\App;
 use Friendica\Content\ContactSelector;
 use Friendica\Content\Pager;
-use Friendica\Core\L10n;
 use Friendica\Core\Renderer;
 use Friendica\Database\DBA;
 use Friendica\DI;
@@ -25,7 +24,7 @@ function common_content(App $a)
        $zcid = 0;
 
        if (!local_user()) {
-               notice(L10n::t('Permission denied.') . EOL);
+               notice(DI::l10n()->t('Permission denied.') . EOL);
                return;
        }
 
@@ -41,7 +40,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 {
@@ -54,10 +53,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;
                }
        }
 
@@ -88,7 +87,7 @@ function common_content(App $a)
        }
 
        if ($total < 1) {
-               notice(L10n::t('No contacts in common.') . EOL);
+               notice(DI::l10n()->t('No contacts in common.') . EOL);
                return $o;
        }
 
@@ -139,7 +138,7 @@ function common_content(App $a)
        if ($cmd === 'loc' && $cid && local_user() == $uid) {
                $tab_str = Module\Contact::getTabsHTML($a, $contact, 5);
        } else {
-               $title = L10n::t('Common Friends');
+               $title = DI::l10n()->t('Common Friends');
        }
 
        $tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl');