Permalink
Browse files

MDL-35593 core_webservice_get_site_info returns version number set to…

… PARAM_TEXT and PARAM_FLOAT
  • Loading branch information...
1 parent 2a0ec98 commit c7a0750b8ca60145a2212c59f486a55b88fa8e61 @mouneyrac mouneyrac committed with mouneyrac Sep 24, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 webservice/externallib.php
@@ -173,7 +173,8 @@ public static function get_site_info_returns() {
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 @@ public function get_siteinfo($serviceshortnames = array()) {
public static function get_siteinfo_returns() {
return core_webservice_external::get_site_info_returns();
}
-}
+}

0 comments on commit c7a0750

Please sign in to comment.