diff --git a/core/page.class.php b/core/page.class.php index 97d9e312..55b35507 100644 --- a/core/page.class.php +++ b/core/page.class.php @@ -71,8 +71,6 @@ class GenericPage { // ============================================== public function display() { - global $config; - header("Content-type: {$this->type}"); switch($this->mode) { diff --git a/core/util.inc.php b/core/util.inc.php index 046d7312..3aa69fae 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -174,8 +174,6 @@ function _count_execs($db, $sql, $inputarray) { } function get_theme_object($file, $class) { - global $config; - $theme = $config->get_string("theme", "default"); if(class_exists("Custom$class")) { $class = "Custom$class"; return new $class(); diff --git a/ext/bbcode/main.php b/ext/bbcode/main.php index b188412f..95d6aac3 100644 --- a/ext/bbcode/main.php +++ b/ext/bbcode/main.php @@ -16,8 +16,8 @@ class BBCode extends Extension { $text = preg_replace("/\[code\](.*?)\[\/code\]/s", "
\\1", $text); $text = preg_replace("/>>(\d+)/s", ">>\\1", $text); $text = preg_replace("/>>([^\d].+)/", "
\\1", $text); - $text = preg_replace("/\[url=((?:https?|ftp|irc):\/\/.*?)\](.*?)\[\/url\]/s", "\\2", $text); - $text = preg_replace("/\[url\]((?:https?|ftp|irc):\/\/.*?)\[\/url\]/s", "\\1", $text); + $text = preg_replace("/\[url=((?:https?|ftp|irc|mailto):\/\/.*?)\](.*?)\[\/url\]/s", "\\2", $text); + $text = preg_replace("/\[url\]((?:https?|ftp|irc|mailto):\/\/.*?)\[\/url\]/s", "\\1", $text); $text = preg_replace("/\[\[([^\|\]]+)\|([^\]]+)\]\]/s", "\\2", $text); $text = preg_replace("/\[\[([^\]]+)\]\]/s", "\\1", $text); $text = str_replace("\n", "\n