Skip to content

Unify accepted templates #5522

@elzody

Description

@elzody

There are several places in the code that define what file types are accepted as templates (see #5475 and #5512). Instead of trying to make them all match, we should refactor it a bit and define them once and use that where needed.

'acceptedTemplateTypes' => [
'.ott', '.otg', '.otp', '.ots',
'.odt', '.odg', '.odp', '.ods',
'.dot', '.dotx', '.doc', '.docx',
'.xlt', '.xltx', '.xls', '.xlsx',
'.pot', '.potx', '.ppt', '.pptx',
],

$supportedExtensions = [
'ott', 'otg', 'otp', 'ots',
'odt', 'odg', 'odp', 'ods',
'dotx', 'xltx', 'potx',
'docx', 'xlsx', 'pptx',
'dot', 'xlt', 'pot',
];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions