mirror of
https://github.com/friendica/friendica
synced 2024-12-23 19:20:17 +00:00
Add App parameter to Module\Profile::sidebar method prototype
This commit is contained in:
parent
8c5923bb46
commit
1c6bf7d25a
1 changed files with 3 additions and 5 deletions
|
@ -117,7 +117,7 @@ class Profile
|
||||||
|
|
||||||
if (count($profiledata) > 0) {
|
if (count($profiledata) > 0) {
|
||||||
// Add profile data to sidebar
|
// Add profile data to sidebar
|
||||||
$a->page['aside'] .= self::sidebar($profiledata, true, $show_connect);
|
$a->page['aside'] .= self::sidebar($a, $profiledata, true, $show_connect);
|
||||||
|
|
||||||
if (!DBA::isResult($user)) {
|
if (!DBA::isResult($user)) {
|
||||||
return;
|
return;
|
||||||
|
@ -188,7 +188,7 @@ class Profile
|
||||||
* But: When this profile was on the same server, then we could display the contacts
|
* But: When this profile was on the same server, then we could display the contacts
|
||||||
*/
|
*/
|
||||||
if (!$profiledata) {
|
if (!$profiledata) {
|
||||||
$a->page['aside'] .= self::sidebar($a->profile, $block, $show_connect);
|
$a->page['aside'] .= self::sidebar($a, $a->profile, $block, $show_connect);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -280,10 +280,8 @@ class Profile
|
||||||
* @hooks 'profile_sidebar'
|
* @hooks 'profile_sidebar'
|
||||||
* array $arr
|
* array $arr
|
||||||
*/
|
*/
|
||||||
private static function sidebar($profile, $block = 0, $show_connect = true)
|
private static function sidebar(App $a, $profile, $block = 0, $show_connect = true)
|
||||||
{
|
{
|
||||||
$a = \get_app();
|
|
||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
$location = false;
|
$location = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue