Skip to content

Commit

Permalink
Use RemoteWikiFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Oct 7, 2024
1 parent 69c5e41 commit bb05461
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions includes/FormFactory/ManageWikiFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use MediaWiki\HTMLForm\HTMLForm;
use MediaWiki\MediaWikiServices;
use MediaWiki\Output\OutputPage;
use Miraheze\CreateWiki\RemoteWiki;
use Miraheze\CreateWiki\Services\RemoteWikiFactory;
use Miraheze\ManageWiki\Helpers\ManageWikiOOUIForm;
use Miraheze\ManageWiki\ManageWiki;
use UnexpectedValueException;
Expand All @@ -21,7 +21,7 @@ public function getFormDescriptor(
string $dbName,
bool $ceMW,
IContextSource $context,
RemoteWiki $wiki,
RemoteWikiFactory $remoteWiki,
Config $config,
string $special = '',
string $filtered = ''
Expand All @@ -31,12 +31,12 @@ public function getFormDescriptor(
$context->getLanguage()->getDir()
);

return ManageWikiFormFactoryBuilder::buildDescriptor( $module, $dbName, $ceMW, $context, $wiki, $special, $filtered, $config );
return ManageWikiFormFactoryBuilder::buildDescriptor( $module, $dbName, $ceMW, $context, $remoteWiki, $special, $filtered, $config );
}

public function getForm(
string $wiki,
RemoteWiki $remoteWiki,
RemoteWikiFactory $remoteWiki,
IContextSource $context,
Config $config,
string $module,
Expand Down Expand Up @@ -78,7 +78,7 @@ protected function submitForm(
string $module,
bool $ceMW,
string $dbName,
RemoteWiki $wiki,
RemoteWikiFactory $remoteWiki,
DBConnRef $dbw,
Config $config,
string $special = '',
Expand All @@ -94,7 +94,7 @@ protected function submitForm(
$form->getButtons();
$formData['reason'] = $form->getField( 'reason' )->loadDataFromRequest( $form->getRequest() );

$mwReturn = ManageWikiFormFactoryBuilder::submissionHandler( $formData, $form, $module, $dbName, $context, $wiki, $dbw, $config, $special, $filtered );
$mwReturn = ManageWikiFormFactoryBuilder::submissionHandler( $formData, $form, $module, $dbName, $context, $remoteWiki, $dbw, $config, $special, $filtered );

if ( !empty( $mwReturn ) ) {
$errorOut = [];
Expand Down

0 comments on commit bb05461

Please sign in to comment.