diff --git a/src/Module/Xrd.php b/src/Module/Xrd.php index 3d8f50fc2..1fc043109 100644 --- a/src/Module/Xrd.php +++ b/src/Module/Xrd.php @@ -101,7 +101,7 @@ class Xrd extends BaseModule $avatar = ['type' => 'image/jpeg']; } - if ($mode == Response::TYPE_JSON) { + if ($mode == Response::TYPE_XML) { self::printXML($alias, DI::baseUrl()->get(), $user, $owner, $avatar); } else { self::printJSON($alias, DI::baseUrl()->get(), $owner, $avatar);