Matthias Mullie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/215926

Change subject: Add small comments to clarify page-creation during import
......................................................................

Add small comments to clarify page-creation during import

Change-Id: Ibf1e10dd51033072916a17be7146f0d510527723
---
M includes/Import/Importer.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/26/215926/1

diff --git a/includes/Import/Importer.php b/includes/Import/Importer.php
index a7d05da..689221d 100644
--- a/includes/Import/Importer.php
+++ b/includes/Import/Importer.php
@@ -527,6 +527,7 @@
                $isNew = $state->boardWorkflow->isNew();
                $state->logger->debug( 'Workflow isNew: ' . var_export( $isNew, 
true ) );
                if ( $isNew ) {
+                       // Explicitly allow creation of board, regardless of 
$wgFlowOccupyNamespaces etc
                        $allowCreationStatus = 
$this->occupationController->allowCreation(
                                $destinationTitle,
                                
$this->occupationController->getTalkpageManager(),
@@ -536,6 +537,7 @@
                                throw new ImportException( "allowCreation 
failed to allow the import destination, with the following error:\n" . 
$allowCreationStatus->getWikiText() );
                        }
 
+                       // Makes sure the page exists and a Flow-specific 
revision has been inserted
                        $status = 
$this->occupationController->ensureFlowRevision(
                                new Article( $destinationTitle ),
                                $state->boardWorkflow

-- 
To view, visit https://gerrit.wikimedia.org/r/215926
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibf1e10dd51033072916a17be7146f0d510527723
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to