From cc22b515eabac0a4af9bc160e7b1bdafcd3579d9 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Mon, 10 Oct 2016 11:27:49 +0800 Subject: [PATCH] MDL-56333 core_message: fixed return type for get_profile WS --- message/externallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message/externallib.php b/message/externallib.php index 4bed642ffdcfe..07731c4ff08c4 100644 --- a/message/externallib.php +++ b/message/externallib.php @@ -1048,7 +1048,7 @@ public static function data_for_messagearea_get_profile_returns() { array( 'userid' => new external_value(PARAM_INT, 'The id of the user whose profile we are viewing'), 'email' => new external_value(core_user::get_property_type('email'), 'An email address'), - 'country' => new external_value(core_user::get_property_type('country'), 'Home country code of the user'), + 'country' => new external_value(PARAM_TEXT, 'Home country of the user'), 'city' => new external_value(core_user::get_property_type('city'), 'Home city of the user'), 'fullname' => new external_value(PARAM_NOTAGS, 'The user\'s name'), 'profileimageurl' => new external_value(PARAM_URL, 'User picture URL'),