From: Friendika Date: Sun, 12 Dec 2010 22:33:04 +0000 (-0800) Subject: replace quick fix with correct fix X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e39f60c041f8d614f8eb3c12c901b92ac08222f;p=friendica.git replace quick fix with correct fix --- diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index 60106661cb..e1370dfd82 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -6,8 +6,7 @@ function dfrn_request_init(&$a) { if($a->argc > 1) $which = $a->argv[1]; - require_once('mod/profile.php'); - profile_init($a,$which); + profile_load($a,$which); return; }} diff --git a/mod/display.php b/mod/display.php index 3691616192..990d0b431b 100644 --- a/mod/display.php +++ b/mod/display.php @@ -5,8 +5,8 @@ function display_content(&$a) { $o = '
' . "\r\n"; - require_once('mod/profile.php'); - profile_init($a); + $nick = (($a->argc > 1) ? $a->argv[1] : ''); + profile_load($a,$nick); $item_id = (($a->argc > 2) ? intval($a->argv[2]) : 0);