1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Merge branch '3.2.x' into 3.3.x

This commit is contained in:
Marc Alexander
2019-11-28 21:11:48 +01:00
2 changed files with 37 additions and 5 deletions

View File

@@ -275,6 +275,22 @@ class phpbb_textformatter_s9e_bbcode_merger_test extends phpbb_test_case
</table>
<p> </p>'
],
[
// https://www.phpbb.com/community/viewtopic.php?f=438&t=2530451
'[issue]{NUMBER}[/issue]',
'<a href="/default/issues/{NUMBER}"> Issue #{NUMBER}</a>',
'[issue={SIMPLETEXT}]{NUMBER}[/issue]',
'<a href="/{SIMPLETEXT}/issues/{NUMBER}"> Issue #{NUMBER} ({SIMPLETEXT})</a>',
'[issue={SIMPLETEXT?}]{NUMBER}[/issue]',
'<a>
<xsl:choose>
<xsl:when test="@issue"><xsl:attribute name="href">/<xsl:value-of select="@issue"/>/issues/<xsl:value-of select="@content"/></xsl:attribute> Issue #<xsl:value-of select="@content"/> (<xsl:value-of select="@issue"/>)</xsl:when>
<xsl:otherwise><xsl:attribute name="href">/default/issues/<xsl:value-of select="@content"/></xsl:attribute> Issue #<xsl:value-of select="@content"/></xsl:otherwise>
</xsl:choose>
</a>'
],
];
}
}