Bug #14775
closedEditing ExtList in Install Tool prevents Extension Manager from installing any more extensions.
0%
Description
If someone accidentally changes the ExtList in the Install Tool (for instance, by 'tabbing' through and accidentally hitting some key or other as they go by) or, even if they change it on purpose, the Extension Manager is no longer able to install or uninstall any extensions, because it modifies the first instance of ExtList in localconf.php, and the Install Tools's second instance takes precedence.
I would recommend one, or both, of the following solutions:
Solution A:
Create a simple Checkbox just above ExtList. This wouldn't store yet another variable, but would instead have a simple JavaScript function attached to that would enable editing of the 'ExtList' textbox upon clicking it (i.e. editing that 'ExtList' textbox would be disabled by default.) It might says something like:
[_] I understand the risk associated with editing this value outside of the EM, and want to change it anyway (NOTE: This might render the EM unusable!)
Solution B:
Add a feature to the extension manager where it checks for multiple occurances of 'ExtList' in localconf.php and output an error if there are multiple instances. You could take it even further by doing any number of the following:
-Compare all instances of 'ExtList' and tell what differences there are. If there aren't any, delete all but the first occurance.
-Just automatically remove all but the first occurance of 'ExtList', no warning,
-Always add an additional entry every time something is changed (this would make localconf get big real fast. Not very good option)
-Offer the error, and provide a list of options to automatically fix the error, including possibly the option for the user to manually edit an entry that would then be saved as the first occurance deleting all other occurances.
-Something else?
(issue imported from #M1137)
Files