-
Notifications
You must be signed in to change notification settings - Fork 1
Description
When using #arrayprint on the PDFList to print the beta site links, I think any = sign gets replaced by {{=}}. This can be tested by previewing a MediaWiki page with this on it:
{{#arraydefine:foo|http://a=a,http://bb}}
Good:<br>{{#arrayindex:foo|0}}<br>{{#arrayindex:foo|1}}<br>
Bad:<br>{{#arrayprint:foo||@@@|@@@<br>}}
I believe this has to do with an update of the Arrays extension, documented here: https://www.mediawiki.org/wiki/Extension:Arrays
To fix, I think the options are:
A. Set $egArraysCompatibilityMode, to make the Arrays extension behave like it probably did when this page was written.
B. Change $egArraysExpansionEscapeTemplates, to disable the = -> {{=}} replacement.
C. Change the PDFList page to deal with it - perhaps replacing the #arrayprint with a for loop, or pre-replace the = characters in the links before passing through #arrayprint.
or
D. Use a workaround in code - this is currently what we have in place to prevent the phantomjs hang, but it may not cover all cases, and not sure if there are other uses of this page (or other pages using #arrayprint) that are not handled.