Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Nov 20, 2024
1 parent c28c24f commit e6224e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/FormFactory/ManageWikiFormFactoryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ private static function buildDescriptorCore(
'section' => 'main'
];

if ( $ceMW && ( $config->get( 'DBname' ) == $config->get( 'CreateWikiGlobalWiki' ) ) && ( $remoteWiki->getDBname() !== $config->get( 'CreateWikiGlobalWiki' ) ) ) {
$databaseUtils = MediaWikiServices::getInstance()->get( 'CreateWikiDatabaseUtils' );

if ( $ceMW && $databaseUtils->isCurrentWikiCentral() && ( $remoteWiki->getDBname() !== $databaseUtils->getCentralWikiID() ) ) {
$mwActions = [
( $remoteWiki->isDeleted() ) ? 'undelete' : 'delete',
( $remoteWiki->isLocked() ) ? 'unlock' : 'lock'
Expand Down

0 comments on commit e6224e8

Please sign in to comment.