Skip to content
Browse files

Fixes issues with the Bold BBCode not working

This fixes an issue that happens with the BBCode for Bold.
  • Loading branch information...
Felli committed Apr 10, 2016
1 parent d090a24 commit 5f57f308b5f7a93bce50272792889f51be6a6f14
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/plugins/BBCode/plugin.php
@@ -111,7 +111,7 @@ public function handler_format_format($sender)
$sender->content = preg_replace_callback("/\[url=(?!\s+)(\w{2,6}:\/\/)?([^\]]*?)\](.*?)\[\/url\]/i", array($this, "linksCallback"), $sender->content);
// Bold: [b]bold text[/b]
$sender->content = preg_replace("|\[b\](.*?)\[/b\]|si", "<b>$1</b>", $sender->content);
$sender->content = preg_replace("/\[b\](.*?)\[\/b\]/si", "<b>$1</b>", $sender->content);
// Italics: [i]italic text[/i]
$sender->content = preg_replace("/\[i\](.*?)\[\/i\]/si", "<i>$1</i>", $sender->content);

0 comments on commit 5f57f30

Please sign in to comment.
You can’t perform that action at this time.