mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:50:11 +00:00
Replace deprecated $a->page with DI::page()
This commit is contained in:
parent
6c2d13403e
commit
6d7362da41
48 changed files with 197 additions and 198 deletions
|
@ -3576,7 +3576,7 @@ class Item
|
|||
if (strpos($mime, 'video') !== false) {
|
||||
if (!$vhead) {
|
||||
$vhead = true;
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('videos_head.tpl'));
|
||||
DI::page()['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('videos_head.tpl'));
|
||||
}
|
||||
|
||||
$url_parts = explode('/', $the_url);
|
||||
|
|
|
@ -155,7 +155,7 @@ class Profile
|
|||
}
|
||||
|
||||
// Add profile data to sidebar
|
||||
$a->page['aside'] .= self::sidebar($a, $profiledata, true, $show_connect);
|
||||
DI::page()['aside'] .= self::sidebar($a, $profiledata, true, $show_connect);
|
||||
|
||||
if (!DBA::isResult($user)) {
|
||||
return;
|
||||
|
@ -189,7 +189,7 @@ class Profile
|
|||
$a->profile['mobile-theme'] = PConfig::get($a->profile['profile_uid'], 'system', 'mobile_theme');
|
||||
$a->profile['network'] = Protocol::DFRN;
|
||||
|
||||
$a->page['title'] = $a->profile['name'] . ' @ ' . Config::get('config', 'sitename');
|
||||
DI::page()['title'] = $a->profile['name'] . ' @ ' . Config::get('config', 'sitename');
|
||||
|
||||
if (!$profiledata && !PConfig::get(local_user(), 'system', 'always_my_theme')) {
|
||||
$a->setCurrentTheme($a->profile['theme']);
|
||||
|
@ -208,7 +208,7 @@ class Profile
|
|||
}
|
||||
|
||||
if (local_user() && local_user() == $a->profile['uid'] && $profiledata) {
|
||||
$a->page['aside'] .= Renderer::replaceMacros(
|
||||
DI::page()['aside'] .= Renderer::replaceMacros(
|
||||
Renderer::getMarkupTemplate('profile_edlink.tpl'),
|
||||
[
|
||||
'$editprofile' => L10n::t('Edit profile'),
|
||||
|
@ -225,7 +225,7 @@ class Profile
|
|||
* But: When this profile was on the same server, then we could display the contacts
|
||||
*/
|
||||
if (!$profiledata) {
|
||||
$a->page['aside'] .= self::sidebar($a, $a->profile, $block, $show_connect);
|
||||
DI::page()['aside'] .= self::sidebar($a, $a->profile, $block, $show_connect);
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue