mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
name2id exclude ':'. Linkwords fix for spaces.
This commit is contained in:
@@ -2797,7 +2797,7 @@ class e_form
|
|||||||
function name2id($name)
|
function name2id($name)
|
||||||
{
|
{
|
||||||
$name = strtolower($name);
|
$name = strtolower($name);
|
||||||
return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.', '(', ')', '::'), array('-', '-', '', '-', '-', '-', '-','','','-'), $name), '-');
|
return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.', '(', ')', '::', ':'), array('-', '-', '', '-', '-', '-', '-','','','-',''), $name), '-');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -309,7 +309,7 @@ class e_tohtml_linkwords
|
|||||||
}
|
}
|
||||||
|
|
||||||
// This splits the text into blocks, some of which will precisely contain a linkword
|
// This splits the text into blocks, some of which will precisely contain a linkword
|
||||||
$split_line = preg_split('#\b('.$lw.')(?:\s|\b)#i'.$this->utfMode, $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); // *utf (selected)
|
$split_line = preg_split('#\b('.$lw.')(\s|\b)#i'.$this->utfMode, $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); // *utf (selected)
|
||||||
// $class = "".implode(' ',$lwClass)."' ";
|
// $class = "".implode(' ',$lwClass)."' ";
|
||||||
$class = implode(' ',$lwClass);
|
$class = implode(' ',$lwClass);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user