mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 20:31:41 +02:00
Bugfix: internal link detection was failing. Also added support for [link=url rel=internal] for overriding default preference.
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $
|
||||
| $Revision: 1.21 $
|
||||
| $Date: 2007-11-10 19:24:42 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.22 $
|
||||
| $Date: 2007-11-13 07:38:55 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
@@ -475,11 +475,7 @@ class e_parse
|
||||
}
|
||||
|
||||
|
||||
// replace all {e_XXX} constants with their e107 value
|
||||
if ($opts['constants'])
|
||||
{
|
||||
$text = $this->replaceConstants($text);
|
||||
}
|
||||
|
||||
|
||||
if ($opts['no_tags'])
|
||||
{
|
||||
@@ -562,6 +558,8 @@ class e_parse
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Start parse [bb][/bb] codes
|
||||
if ($parseBB === TRUE)
|
||||
{
|
||||
@@ -574,6 +572,12 @@ class e_parse
|
||||
// End parse [bb][/bb] codes
|
||||
|
||||
|
||||
// replace all {e_XXX} constants with their e107 value AFTER the bbcodes have been parsed.
|
||||
if ($opts['constants'])
|
||||
{
|
||||
$text = $this->replaceConstants($text);
|
||||
}
|
||||
|
||||
// profanity filter
|
||||
if ($pref['profanity_filter']) {
|
||||
if (!is_object($this->e_pf)) {
|
||||
|
Reference in New Issue
Block a user