MDL-56673 tool_templatelibrary: fix externallib backwards compat
The function now matches the VALUE_DEFAULT option of the service.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user