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 +}