Putnik has uploaded a new change for review.

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

Change subject: Combine identical references in one
......................................................................

Combine identical references in one

Change-Id: Ib2460ec77774c98c903910d416209669c572b765
---
M includes/Lua/mw.ext.articlePlaceholder.entityRenderer.lua
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ArticlePlaceholder 
refs/changes/77/296177/1

diff --git a/includes/Lua/mw.ext.articlePlaceholder.entityRenderer.lua 
b/includes/Lua/mw.ext.articlePlaceholder.entityRenderer.lua
index 6466b7a..4d481ef 100644
--- a/includes/Lua/mw.ext.articlePlaceholder.entityRenderer.lua
+++ b/includes/Lua/mw.ext.articlePlaceholder.entityRenderer.lua
@@ -96,7 +96,8 @@
 
     while i do
       referenceWikitext = snaksRenderer( reference['snaks'] )
-      table.insert( referencesWikitext, frame:extensionTag( 'ref', 
referenceWikitext ) )
+      referenceTagName = mw.text.encode( referenceWikitext )
+      table.insert( referencesWikitext, frame:extensionTag( 'ref', 
referenceWikitext, { name = referenceTagName } ) )
       i, reference = next( references, i )
     end
   end

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib2460ec77774c98c903910d416209669c572b765
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ArticlePlaceholder
Gerrit-Branch: master
Gerrit-Owner: Putnik <m...@putnik.ws>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to