Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploaded template file might not be removed from filearea when a template is deleted #41

Open
abias opened this issue Nov 17, 2022 · 0 comments

Comments

@abias
Copy link
Member

abias commented Nov 17, 2022

Hi Stefan,

as discussed, I am re-using your template management code from this plugin in theme_boost_union. During the adoption of the existing code, I became aware that an uploaded template file might not be removed from the filearea when a template is deleted in the GUI.

The code are which is handling the template deletion is at https://github.com/bdecentgmbh/moodle-format_kickstart/blob/master/template.php#L131-L152, but there isn't any code which removes the file from the filearea.

You might want to double-check if you need to remove the file from the filearea during the template deletion and if you do, you will need to write a plugin update step which removes all orphaned files which might existing in plugin installations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant