EBernhardson has uploaded a new change for review. https://gerrit.wikimedia.org/r/130854
Change subject: Don't attempt to parse topic titles as html ...................................................................... Don't attempt to parse topic titles as html Change-Id: I5ffa3e858a1c318566c675cb9da41e108e45dd03 --- M maintenance/FlowPopulateLinksTables.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow refs/changes/54/130854/1 diff --git a/maintenance/FlowPopulateLinksTables.php b/maintenance/FlowPopulateLinksTables.php index e990385..56dfaa5 100644 --- a/maintenance/FlowPopulateLinksTables.php +++ b/maintenance/FlowPopulateLinksTables.php @@ -84,6 +84,10 @@ throw new \MWException( 'SQL error in maintenance script ' . __METHOD__ ); } foreach ( $res as $row ) { + if ( !$row['tree_parent_id'] ) { + // topic title, does not contain html or links + continue; + } $count++; $id = $row->tree_rev_id; $uuid = UUID::create( $id ); -- To view, visit https://gerrit.wikimedia.org/r/130854 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5ffa3e858a1c318566c675cb9da41e108e45dd03 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Flow Gerrit-Branch: master Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits