File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ public function execute(): void {
3232 $ this ->fatalError ( 'Enable $wgCreateWikiEnableManageInactiveWikis to run this script. ' );
3333 }
3434
35+ $ inactiveDays = (int )$ this ->getConfig ()->get ( ConfigNames::StateDays )['no-edits ' ]['inactive ' ];
36+
3537 $ databaseUtils = $ this ->getServiceContainer ()->get ( 'CreateWikiDatabaseUtils ' );
3638 $ remoteWikiFactory = $ this ->getServiceContainer ()->get ( 'RemoteWikiFactory ' );
3739
@@ -48,10 +50,7 @@ public function execute(): void {
4850 ->fetchFieldValues ();
4951
5052 foreach ( $ wikis as $ wiki ) {
51- $ dbname = $ wiki ->wiki_dbname ;
52- $ remoteWiki = $ remoteWikiFactory ->newInstance ( $ dbname );
53- $ inactiveDays = (int )$ this ->getConfig ()->get ( ConfigNames::StateDays )['no-edits ' ]['inactive ' ];
54-
53+ $ remoteWiki = $ remoteWikiFactory ->newInstance ( $ wiki );
5554 $ remoteWiki ->disableResetDatabaseLists ();
5655
5756 // Check if the wiki is inactive based on creation date
You can’t perform that action at this time.
0 commit comments