#19719Extensions' class.ext_update.php scripts are executed even when extension isn't loaded
Description
Extension’s script class.ext_update.php are used to update data when newly installing an extension or upgrading an existing one.
Unfortunately class.ext_update.php is even executed if the extension isn’t loaded at all. This is unneccessary and most probably causes an error as class.ext_update.php in most cases will use the extension’s API and therefore depend that extension is loaded.
Steps to reproduce:- import an extension that provides such a class (but don’t install it)
- switch to EM function “Install extensions”
- click on the extension’s name to see details
- then class.ext_update.php is executed!
(issue imported from #M9977)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.