Skip to content

Commit

Permalink
Fix being able to forcibly remove extension (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Nov 11, 2024
1 parent e14e511 commit c0c2299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintenance/toggleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function execute() {
foreach ( $wikis as $wiki ) {
$mwExt = new ManageWikiExtensions( $wiki );
$extensionList = $mwExt->list();
if ( $disable && in_array( $ext, $extensionList ) ) {
if ( $disable && ( in_array( $ext, $extensionList ) || $forceRemove ) ) {
$mwExt->remove( $ext, $forceRemove );
$mwExt->commit();
if ( !$noList ) {
Expand Down

0 comments on commit c0c2299

Please sign in to comment.