1
0
Fork 0

Replace deprecated $a->page with DI::page()

This commit is contained in:
Philipp Holzer 2019-12-30 20:02:09 +01:00
commit 6d7362da41
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
48 changed files with 197 additions and 198 deletions

View file

@ -41,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 {
@ -54,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;
}
}