From c7a0750b8ca60145a2212c59f486a55b88fa8e61 Mon Sep 17 00:00:00 2001 From: Jerome Mouneyrac Date: Mon, 24 Sep 2012 15:48:15 +0800 Subject: [PATCH] MDL-35593 core_webservice_get_site_info returns version number set to PARAM_TEXT and PARAM_FLOAT --- webservice/externallib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webservice/externallib.php b/webservice/externallib.php index 7b006d6e1b1..4a6f2d0bda5 100644 --- a/webservice/externallib.php +++ b/webservice/externallib.php @@ -173,7 +173,8 @@ class core_webservice_external extends external_api { new external_single_structure( array( 'name' => new external_value(PARAM_RAW, 'function name'), - 'version' => new external_value(PARAM_FLOAT, 'The version number of moodle site/local plugin linked to the function') + 'version' => new external_value(PARAM_TEXT, + 'The version number of the component to which the function belongs') ), 'functions that are available') ), 'downloadfiles' => new external_value(PARAM_INT, '1 if users are allowed to download files, 0 if not', VALUE_OPTIONAL), @@ -237,4 +238,4 @@ class moodle_webservice_external extends external_api { public static function get_siteinfo_returns() { return core_webservice_external::get_site_info_returns(); } -} \ No newline at end of file +}