mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-56673 tool_templatelibrary: fix externallib backwards compat
The function now matches the VALUE_DEFAULT option of the service.
This commit is contained in:
parent
ac67c97ccb
commit
6d368fc2f6
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user