From 6d368fc2f65c8bf8378c00daf5afb2f010270dbe Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Fri, 4 Nov 2016 09:59:36 +0000 Subject: [PATCH] MDL-56673 tool_templatelibrary: fix externallib backwards compat The function now matches the VALUE_DEFAULT option of the service. --- admin/tool/templatelibrary/classes/external.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/tool/templatelibrary/classes/external.php b/admin/tool/templatelibrary/classes/external.php index 488fb3c5409..b92f60859e7 100644 --- a/admin/tool/templatelibrary/classes/external.php +++ b/admin/tool/templatelibrary/classes/external.php @@ -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,