require_once(DIR . '/includes/functions_user.php');$avatarurl = fetch_avatar_url($view->authorid, true);if ($avatarurl[0]) { $avatarurl = $avatarurl[0];}/* render template and register variables */$view->avatarurl = $avatarurl;