Skip to content
Prev Previous commit
Next Next commit
encapsulate templates
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky authored and juliusknorr committed Nov 27, 2019
commit bccf2367384f3d093b2988eb6d09e4f9c9a899a4
4 changes: 3 additions & 1 deletion lib/private/DirectEditing/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ public function getTemplates(string $editor, string $type): array {
$templates = $creator->getTemplates();
}
}
return $templates;
$return = [];
$return['templates'] = $templates;
return $return;
}

public function create(string $path, string $editorId, string $creatorId, $templateId = null): string {
Expand Down