dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* (bug 2374) Allow extension tags to be terminated empty elements
[lhc/web/wiklou.git]
/
includes
/
Parser.php
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
1167711
..
a910afe
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-272,6
+272,9
@@
class Parser
$params = array( );
}
+ // Hack to support short XML style tags
+ $text = preg_replace( "/<$tag(\\s+[^>]*|\\s*)\\/>/i", "<$tag\\1></$tag>", $text );
+
if( $tag == STRIP_COMMENTS ) {
$start = '/<!--()/';
$end = '/-->/';