summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-07-29 11:05:29 +0000
committeruckelman <uckelman@nomic.net>2010-07-29 11:05:29 +0000
commitd5a9d286bb7a53222cdeebbcb08e9f07683b620d (patch)
tree08d68a8134e3fb0a4835a811b5a918b09fe6fbed /src
parentb327b2ecacd86b51925d49145ed446ecf67f0831 (diff)
Handle <!-- l --> (postlink-local) non-BBCode local links.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7044 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src')
-rw-r--r--src/BBCodeParser.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/BBCodeParser.php b/src/BBCodeParser.php
index 1f9aa26..7419491 100644
--- a/src/BBCodeParser.php
+++ b/src/BBCodeParser.php
@@ -17,6 +17,7 @@ class BBCodeParser {
# convert non-BBCode links to BBCode (ack!)
$in = preg_replace('/<!-- ([mw]) --><a class="postlink" href="(.*?)">(.*?)<\/a><!-- \1 -->/', "[url:$uid=\\2]\\3[/url:$uid]", $in);
+ $in = preg_replace('/<!-- l --><a class="postlink-local" href="(.*?)">(.*?)<\/a><!-- l -->/', "[url:$uid=\\1]\\2[/url:$uid]", $in);
$in = preg_replace('/<!-- e --><a href="(.*?)">(.*?)<\/a><!-- e -->/', "[email:$uid=\\1]\\2[/email:$uid]", $in);
$text_stack = array();