MDL-56673 tool_templatelibrary: fix externallib backwards compat

The function now matches the VALUE_DEFAULT option of the service.
This commit is contained in:
Dan Poltawski 2016-11-04 09:59:36 +00:00
parent ac67c97ccb
commit 6d368fc2f6

View File

@ -73,9 +73,10 @@ class external extends external_api {
* Loads the list of templates.
* @param string $component Limit the search to a component.
* @param string $search The search string.
* @param string $themename The name of theme
* @return array[string]
*/
public static function list_templates($component, $search, $themename) {
public static function list_templates($component, $search, $themename = '') {
$params = self::validate_parameters(self::list_templates_parameters(),
array(
'component' => $component,